I've researched on Google, Wine's wikki and Wine's forum, but I did not find how exactly does Wine to extract the icons from the exe binaries. The only thing that I've found are mentions to third party programs, but anything about Wine itself. May anyone bring some light about the subject?
Thanks.
How does Wine extract icons?
-
- Level 4
- Posts: 149
- Joined: Mon Jun 02, 2008 5:03 pm
How does Wine extract icons?
Wine extracts icons using the windows API, which it also happens to
implement. The code for this (based on windows libraries) is in
winemenubuilder:
http://source.winehq.org/source/program ... ubuilder.c
implement. The code for this (based on windows libraries) is in
winemenubuilder:
http://source.winehq.org/source/program ... ubuilder.c
Re: How does Wine extract icons?
there is no winemenubuilder for Macs.. is why I haven't seen this I guess. Macs using vanilla Wine its all command line only.madewokherd wrote:Wine extracts icons using the windows API, which it also happens to
implement. The code for this (based on windows libraries) is in
winemenubuilder:
http://source.winehq.org/source/program ... ubuilder.c
thanks for the info though.
How does Wine extract icons?
Thank you very much, madewokherd.
Do you know if this can be used through the command line? When one installs a win32/64 program, wine does extract the icons, but sometimes there is no installation program, which is one of the cases where one would like to use this extraction method.
Do you know if this can be used through the command line? When one installs a win32/64 program, wine does extract the icons, but sometimes there is no installation program, which is one of the cases where one would like to use this extraction method.
Use icoutils:
http://www.nongnu.org/icoutils/
http://www.nongnu.org/icoutils/
-
- Level 4
- Posts: 149
- Joined: Mon Jun 02, 2008 5:03 pm
How does Wine extract icons?
From looking at the source, there is a command that extracts the icon
from a .lnk file:
wine winemenubuilder -t filename.lnk output.png
However, there is no way (yet) to do this for a .exe or .ico file directly.
from a .lnk file:
wine winemenubuilder -t filename.lnk output.png
However, there is no way (yet) to do this for a .exe or .ico file directly.
How does Wine extract icons?
Wow, madewokherd! You're awesome. Thank you again.
Addys, I was looking for something closer to what madewokherd posted, but your link will be surely useful. Thanks.
Addys, I was looking for something closer to what madewokherd posted, but your link will be surely useful. Thanks.