GNOME Bugzilla – Bug 649087
Gnome Shell does not show Wine program names in dash and panel
Last modified: 2014-04-28 20:44:58 UTC
Overview: All running Wine applications share the same nondescript icon, and their title in the panel is always given as "Wine Windows Program Loader". Switching between Wine apps using the Dash requires a right-click on the shared icon. Steps to reproduce: With Wine installed, run from the terminal: $ wine winemine & $ wine notepad & Actual results: When either of the two programs have focus, the program's name in the panel is given as "Wine Windows Program Loader". Switch to the Activities view, note that there is only one generic icon for both programs. Expected results: As was the case in Gnome 2.32, Wine programs should be identified by their correct name and icon. Build Date & Platform: Gnome Shell 3.0.1, Arch Linux
It is very likely that all wine programs share the same WM_CLASS (you can verify it with xprop), in which case the bug is in wine itself.
Yes, Wine is going to need to set the WM_CLASS to the .desktop file matching the application. See also https://bugzilla.gnome.org/show_bug.cgi?id=632229#c8 where I link to the Windows API: http://msdn.microsoft.com/en-us/library/dd378459(v=VS.85).aspx for doing something similar to what GNOME needs. If a Wine-emulated Windows app uses that API, we should be ensuring it works.
Indeed, the WM_CLASS for Wine programs is always "Wine", plus the file name of the Windows executable. For the record, I have filed a Wine bug report here: http://bugs.winehq.org/show_bug.cgi?id=27032
Workaround: move /usr/share/applications/wine.desktop to /usr/share/applications/wine-launcher.desktop The window names are still wrong, but at least they are different items in the alt-tab
Created attachment 215009 [details] Alt-tab after renaming wine.desktop Sadly, windows of a same application are still treated as different applications
Dup'ing on a newer bug with patches. *** This bug has been marked as a duplicate of bug 722636 ***