Just a Linux geek with a love for creative, witty, or just plain fun games... when I'm not too busy programming or reading.

Report RSS set_icon.py, now with .exe icon support

Posted by on

If you've got any Windows games running in Wine that you wanted to add to Desura, it was probably a bit of a hassle.

I disabled Start Menu integration in my Wine, so I don't know whether set_icon.py already works via that avenue, but what I do know is that there was always no easy way to add Windows games to Desura if they were the "Unzip and double-click to play" kind.

The newest version of set_icon.py resolves that by using wrestool (from icoutils) to extract the icon if you feed it an EXE file. It may also extract the first icon stored in DLL and ICL files, but I haven't tried it so that's only a guess.

To use it, just install icoutils, update set_icon.py, and then write a wrapper script like this:

#!/bin/sh

# Instructions:
# 1. Save this somewhere like ~/bin/psychonauts
# 2. Run `chmod +x ~/bin/psychonauts` or equivalent

cd ~/.wine/drive_c/Program\ Files/GOG.com/Psychonauts
wine Psychonauts.exe

With that done, all you have to do is add the wrapper to your Desura Play list and then set_icon.py normally:

./set_icon.py Psychonauts ~/.wine/drive_c/Program\ Files/GOG.com/Psychonauts/Psychonauts.exe
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: