Icons and Launchers with Wine

Asked by Kristopher Ives

The relationship between .desktop files and how the integration (which doesn't seem to be complete) with Wine is confusing to me. I understand that .desktop files enough to make them myself, but I do not understand how I could get the icon resource from a Wine executable, or default icons that Wine would use (as a Windows compatible environment)

A good example of this is when I installed Diablo II, which btw was really awesome because it worked flawlessly on my very ancient laptop using Beryl! I was slaying demons while wobblying my windows on 2 faces of a cube, okay, enough of that! More importantly, when I installed it created the shortcut on the desktop and start menu (inside a menu named "Wine") Later when I went to modify the shortcut settings I wanted to replace


with something more elaborate like:

diabloii.exe -w -nosound

but I could not figure how to modify the existing launchers, and after creating my own launcher I lost the cool diabloii.exe icon of the lord of flame himself and was forced to only a moderately evil desktop environment. How can I get the diaboii.exe icon when creating my own launcher; or how can I modify the existing launcher. Is this something I need to take to the wine mailing list (please say no!)

Kristopher Ives

Question information

English Edit question
Ubuntu Edit question
No assignee Edit question
Solved by:
Kaare Baastrup
Last query:
Last reply:
Revision history for this message
Cesare Tirabassi (norsetto) said :

I don't know Wine, so I don't know if it needs something specific.
For a generic application, you can modify the command line with:

Menu->System->Preferences->Main Menu

Select your application (ie. Wine on the left, Diabloii on the right), right click it, choose properties and modify the command line.

Revision history for this message
Best Kaare Baastrup (kaare-baastrup) said :


take a look at "wineshelllink" it can make shortcuts/icons for you

Revision history for this message
Kristopher Ives (nullmind) said :

Thanks Kaare Baastrup, that solved my question.