9

To get Gnome-Shell to correctly detect that an application is already running I need to specify the StartupWWClass in the desktop file. On X11 this is easy to get using xprop (to get WM_CLASS), but on Wayland I cannot find a way to get this information (called in Wayland the application ID I believe). Is there a way to get it?

PS: I'm aware that in general Wayland doesn't allow getting information about other apps like X11 did. However, this information is not particularly sensitive, so I figure either Wayland or Gnome-Shell (the compositor) may have made an exception for this identifier to allow people to determine what applications call themselves and which applications are running.

1 Answers1

6

On Gnome-Shell you can use a built-in tool looking glass.

Press Alt + F2, type lg and press enter. In the top-right panel select "Windows".

enter image description here

You can start inspecting by clicking on any title in the revealed list. Just make sure you don't click on an app.

enter image description here

You will find wm_class right away in the list of windows or as the last item in the list of attributes.

enter image description here

BlueManCZ
  • 543