[Bug 27032] Gnome Shell does not show Wine program names in dash and panel

WineHQ Bugzilla wine-bugs at winehq.org
Sat Apr 4 09:29:40 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=27032

François Gouget <fgouget at codeweavers.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #11 from François Gouget <fgouget at codeweavers.com> ---
This works.

First the windows get proper icons in the _NET_WM_ICON property which allows
them to show up correctly in Alt-Tab.

Then as far as matching application windows with the proper entry in the GNOME
favorites Wine still WM_CLASS as follows (e.g. for Notepad++):

  WM_CLASS(STRING) = "notepad++.exe", "Wine"

But the .desktop files now sets StartupWMClass to match as per the Startup
Notification:

  StartupNotify=true
  StartupWMClass=notepad++.exe

StartupNotify indicates that the Startup Notification protocol is supported
(Wine does support it) and StartupWMClass indicates that a window with either
the WM class or WM name property set to "notepad++.exe" should be matched to
this desktop file. From the Startup Notification specification:

https://specifications.freedesktop.org/startup-notification-spec/startup-notification-0.1.txt

| StartupWMClass=STRING
|
|   If true, it is KNOWN that the application will map at least one
|   window with the given string as its WM class or WM name hint.

With this GNOME can and does match the window to the proper icon in the dock /
application favorites list.

I confirmed this in Ubuntu 19.10, 18.04 and Debian 9 (all GNOME).

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list