WineHQ
Wine Forums

Board index » WineHQ » Wine Help » Linux




 Page 1 of 1 [ 9 posts ] 



 
Author Message
 Post Posted: Tue Jun 12, 2012 8:16 am 
Offline
Level 3
Level 3

Joined: Thu Apr 29, 2010 4:28 pm
Posts: 69
Hey guys,

I was curious about something. When Wine installs a program, that creates a shortcut after installation, it is usually placed on the desktop (as it would in Windows).

So how I can create the same type of shortcut which will use the .exe's inbuilt icon; as Wine does? I know how to create a shortcut but i'd manually need to search for a .png file to use as that shortcuts icon.

The advice is appreciated. :)

r2rX :D


Top 
 Post Posted: Tue Jun 12, 2012 8:28 am 
Offline
Moderator
Moderator
User avatar

Joined: Tue Mar 25, 2008 10:30 pm
Posts: 6343
r2rX wrote:
So how I can create the same type of shortcut which will use the .exe's inbuilt icon; as Wine does?

Never tried it myself, but icoutils is supposed to be able to extract icons from exe files. http://www.nongnu.org/icoutils/


Top 
 Post subject:
 Post Posted: Tue Jun 12, 2012 9:54 am 
Offline
Level 3
Level 3

Joined: Thu Apr 29, 2010 4:28 pm
Posts: 69
Thanks for the response, dimesio. :)

But how does Wine do it? Can I not imitate the command line? I'll look into icoutils.

r2rX :)


Top 
 Post subject:
 Post Posted: Tue Jun 12, 2012 10:05 am 
Offline
Level 3
Level 3

Joined: Thu Apr 29, 2010 4:28 pm
Posts: 69
Hey guys,

Alright, I have icoutils installed and I successfully extracted the icon/s:

Code:
wrestool --raw 'file'.exe --output=/path/to/extract/


I then opened the .ico file in Image Viewer and saved as .png.

So that's definitely some progress. :)

r2rX :D


Top 
 Post Posted: Tue Jun 12, 2012 10:13 am 
 
Maybe you could use imagemagick to convert the ico to png
automatically. Something like:

convert "file.ico" -alpha on -background none -flatten "file.png"


Top 
 Post subject:
 Post Posted: Wed Jun 13, 2012 5:34 am 
Offline
Level 3
Level 3

Joined: Thu Apr 29, 2010 4:28 pm
Posts: 69
Thanks for the suggestion, Bruno. :)

Maybe a script can be written to incorporate the extraction and conversion (via GUI as well) with a sample shown through it.

Would it be worth incorporating it into Wine?

r2rX :)


Top 
 Post subject:
 Post Posted: Wed Jun 13, 2012 11:42 am 
Offline
Level 3
Level 3

Joined: Mon Jul 13, 2009 8:52 pm
Posts: 68
Location: England
http://wiki.winehq.org/winemenubuilder?


Top 
 Post Posted: Wed Jun 13, 2012 11:52 am 
Offline
Moderator
Moderator

Joined: Wed Apr 27, 2011 11:01 pm
Posts: 1153
On Tue, Jun 12, 2012 at 6:16 AM, r2rX <wineforum-user@winehq.org> wrote:
Quote:
Hey guys,

I was curious about something. When Wine installs a program, that creates a shortcut after installation, it is usually placed on the desktop
(as it would in Windows).

I'm assuming you are using a Mac. There was an effort to do this and
I don't know where it stands today. I might 'resurrect' the old
WineHelper project to see if we can get a launcher with icons
attached...

If you want to look at it, the Darwine project included this code and
was on-hold the last I checked.

James


Top 
 Post Posted: Thu Jun 14, 2012 6:18 am 
Offline
Level 3
Level 3

Joined: Thu Apr 29, 2010 4:28 pm
Posts: 69
jjmckenzie wrote:
On Tue, Jun 12, 2012 at 6:16 AM, r2rX <wineforum-user@winehq.org> wrote:

I'm assuming you are using a Mac. There was an effort to do this and
I don't know where it stands today. I might 'resurrect' the old
WineHelper project to see if we can get a launcher with icons
attached...

If you want to look at it, the Darwine project included this code and
was on-hold the last I checked.

James


It's would be nice for Mac users...although i'm on Linux. :)

I'll take a look at the winemenubuilder, KenSharp.

r2rX :D


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 9 posts ] 




Board index » WineHQ » Wine Help » Linux


Who is online

Users browsing this forum: No registered users and 4 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: