Wine icon matching: World of Warcraft

Bug #665819 reported by Patrik Andersson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Docky
Incomplete
Low
Chris S.

Bug Description

Docky (2.0.7 under ubuntu 10.10) doesn't seem to match World of Warcraft running under Wine.
Launcher located at ~/Launchers/World of Warcraft.desktop
When i start WoW with my launcher in docky a new icon appears "Default - Wine Desktop" with the wine icon.
I have even tried StartupWMClass=Wine without success.

Heres my launcher:

[Desktop Entry]
Name=World of Warcraft
Exec=padsp wine /media/Windows/Games/World\ of\ Warcraft/WoW.exe -opengl
Icon=/home/patrik/Pictures/wow.svg
Terminal=false
Type=Application
StartupWMClass=Wine

Revision history for this message
Robert Dyer (psybers) wrote :

Remove the StartupWMClass from the launcher.

Try quoting the executable:

Exec=padsp wine "/media/Windows/Games/World of Warcraft/WoW.exe" -opengl

Changed in docky:
status: New → Incomplete
assignee: nobody → Chris S. (cszikszoy)
importance: Undecided → Low
Revision history for this message
Patrik Andersson (beeeta) wrote :

Same result when quoting the executable, with and without StartupWMClass

Revision history for this message
Robert Dyer (psybers) wrote :

Also, for debugging purposes you need to quit Docky and 'rm -Rf ~/.cache/docky' any time you add/remove/change a launcher (if you didn't do that already).

Try putting the launcher into ~/.local/share/applications and see if it picks it up.

Revision history for this message
Patrik Andersson (beeeta) wrote :

Same result with the launcher in ~/.local/share/applications (been quiting docky and removed the cache).

Revision history for this message
Patrik Andersson (beeeta) wrote :

Also just tried putting the launcher in /usr/share/applications and icon in /usr/share/icons
Still the same result.

New .desktop-file:
[Desktop Entry]
Encoding=UTF-8
Name=World of Warcraft
Name[hr]=World of Warcraft
Exec=padsp wine "/media/Windows/Games/World of Warcraft/WoW.exe" -opengl
Icon=Wow-icon-scalable.svg
Terminal=false
Type=Application
Categories=Application;Game;
StartupNotify=false

Revision history for this message
Robert Dyer (psybers) wrote :

I'm tired, but I think I just realized the problem is it is matching a different launcher. Not that it cant find/match yours.

Do a grep in the launcher directories for 'Wine Desktop' and see if you find a launcher that has that. If so, post it here.

Revision history for this message
Patrik Andersson (beeeta) wrote :

Can't find any "Wine Desktop" launcher. Should also mention that I run wine with the setting "emulate virtual desktop" enabled, if I disable this setting and launch WoW another icon appears in docky, named correctly "World of Warcraft" with an ugly icon, but not matching my launcher in docky. (The game crashes when alt+tabing without this setting enabled)

Revision history for this message
Patrik Andersson (beeeta) wrote :

So probably it is matching the emulated wine desktop, but I can run EVE Online with the same wine settings and it is matched correctly in docky.

Revision history for this message
Patrik Andersson (beeeta) wrote :

Icon matching without "emulate virtual desktop"

Revision history for this message
Patrik Andersson (beeeta) wrote :

Icon matching with "emulate virtual desktop"
Name: "World of Warcraft"

Revision history for this message
Patrik Andersson (beeeta) wrote :

Ops, wrong, correction:
First screenshot the icon is named "World of Warcraft"
In the second its called "Default - Wine desktop"

Revision history for this message
Robert Dyer (psybers) wrote :

Willing to compile from source and test a branch? I think this patch I have would fix your problem but I can't test it.

Revision history for this message
Alexander John (aforsting) wrote :

I was having the same problem with several of my wine apps and I finally fixed it! You need to reformat the .desktop entries for the relevant program in /.local/share/applications and /.local/share/applications/.wine/[etc...]. For whatever reason wine doesn't correctly format the .desktop links for most files and also has a tendency to start files through start.exe and windows .lnk. To fix this, you need to specify the path the to the executable separately from its exec entry. For example:

[Desktop Entry]
Name=World of Warcraft
Exec=padsp wine WoW.exe -opengl
Path=/home/patrik/.wine/dosdevices/e:/Games/World of Warcraft
Icon=/home/patrik/Pictures/wow.svg
Type=Application
StartupNotify=true
StartupWMClass=Wine

#change the e:/ in path to whatever drive your application is on according to wine

Revision history for this message
Full Name (fullnameinvalid) wrote :

unfortunately the answer (#13) from aforsting doesn't work for me with docky 2.2.1 and WoW/wine :(

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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