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

diabloii.exe

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!)

Cheers,
Kristopher Ives
www.krisives.com

Question information

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

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 :
#2

Hey

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

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

Thanks Kaare Baastrup, that solved my question.