Wine application icon is wrong

Bug #1355213 reported by pafosdfkapos
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Plank
Expired
Undecided
Unassigned

Bug Description

Wine applications do not have correct icons when displayed on Plank, the default "Wine" icon is used instead.

For example, if .desktop file Exec and Icon lines looks like this:

Exec=env WINEPREFIX="/home/kristjan/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/kristjan/.wine/dosdevices/c:/users/Public/Start\\ Menu/Programs/GOG.com/Stronghold\\ Crusader\\ Extreme\\ HD/Stronghold\\ Crusader\\ HD.lnk
Icon=4F80_Stronghold Crusader.0

Then the default "Wine" icon is used, but not the icon from the .desktop file.

BUT, if the Exec and Icons lines look like that:

Exec=wine "/home/kristjan/.wine/drive_c/GOG Games/Stronghold Crusader Extreme HD/Stronghold Crusader.exe"
Icon=4F80_Stronghold Crusader.0

The icon is now displayed correctly.

Revision history for this message
pafosdfkapos (pafosdfkapos) wrote :
Revision history for this message
Rico Tzschichholz (ricotz) wrote :

I can't reproduce it here.

Please provide some system information such as the version of plank you are running.

Changed in plank:
status: New → Incomplete
Revision history for this message
pafosdfkapos (pafosdfkapos) wrote :

Latest Freya beta build (all updated)

Revision history for this message
pafosdfkapos (pafosdfkapos) wrote :

I just made a fresh install of Freya Beta and this time I installed wine1.6 just to make sure that the bug is not Wine specific. The icon is still the same, old Wine icon.

I installed MS Office 2010 and the Word .desktop Exec lined looked like this:
Exec=env WINEPREFIX="/home/kristjan/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/kristjan/.wine/dosdevices/c:/users/kristjan/Start\\ Menu/Programs/Microsoft\\ Office/Microsoft\\ Word\\ 2010.lnk

After I changed the line to:
Exec=wine "/home/kristjan/.wine/drive_c/Program Files/Microsoft Office/Office14/WINWORD.EXE"

The icon was displayed correctly, I even could pin it to the Plank with the correct Word icon. BUT, if i closed the Word and reopened it, the Wine icon was created on the plank and the window was again opened in there...

So it means that Slingshot can run the Wine app correctly with the proper icon IF the Exec line is directing to the correct ".exe" file, but Plank seams to ignore the Icon rule, therefore a new "launcher" is created on Plank even when the Word app is pinned on the Plank.

Revision history for this message
Rico Tzschichholz (ricotz) wrote :

This is not a plank bug but a wine one. The desktop files needs to include a proper StartupWMClass and the process itself must set one on its windows as well which is usually the filename of the executable.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Plank because there has been no activity for 60 days.]

Changed in plank:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.