@thomasgassmann: Thanks for the comment, which leads to a little rabbithole.
When starting Threema under Xorg (by directly launching /opt/threema-desktop-beta/ThreemaDesktopLauncher
), the WM_CLASS of the window is set to the app name, which is "Threema Beta". In this case, the desktop file is correct.
But when starting Threema under Wayland (i.e. you're using the wrapper script at /usr/bin/threema-beta
and have Wayland set up), there is no WM_CLASS because that's an Xorg thing. Instead, there's the app_id, and that is currently set to just Threema
. That is also the case for Threema Work, meaning that under Wayland you cannot differentiate between the two windows, and the dock icons may misbehave.
I'll have to investigate how the Wayland app_id
can be set from Electron. It seems that it is set here:
Which uses this function:
...which looks like it should just use the base name of the .desktop file... However, that would be "ch.threema.threema-desktop", so I'm not sure where things go wrong.
Pointers welcome.
Pinned Comments
dbrgn commented on 2025-05-13 14:58 (UTC) (edited on 2025-07-08 08:01 (UTC) by dbrgn)
[Pinned comment]
XDG_CURRENT_DESKTOP=GNOME
env variable (potentially by copying the .desktop file to~/.local/share/applications/
and adjusting it).