After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 649087 - Gnome Shell does not show Wine program names in dash and panel
Gnome Shell does not show Wine program names in dash and panel
Status: RESOLVED DUPLICATE of bug 722636
Product: gnome-shell
Classification: Core
Component: general
3.0.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-05-01 14:06 UTC by Ulrich Keller
Modified: 2014-04-28 20:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Alt-tab after renaming wine.desktop (486.65 KB, image/png)
2012-05-25 22:07 UTC, Rodrigo Virote Kassick
Details

Description Ulrich Keller 2011-05-01 14:06:31 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
Comment 1 Giovanni Campagna 2011-05-02 12:40:59 UTC
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.
Comment 2 Colin Walters 2011-05-02 15:43:55 UTC
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.
Comment 3 Ulrich Keller 2011-05-04 05:28:46 UTC
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
Comment 4 Rodrigo Virote Kassick 2012-05-25 21:59:14 UTC
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
Comment 5 Rodrigo Virote Kassick 2012-05-25 22:07:20 UTC
Created attachment 215009 [details]
Alt-tab after renaming wine.desktop

Sadly, windows of a same application are still treated as different applications
Comment 6 Florian Müllner 2014-04-28 20:44:58 UTC
Dup'ing on a newer bug with patches.

*** This bug has been marked as a duplicate of bug 722636 ***