SOLVED: Icon generation?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
QQ_ghost
Newbie
Newbie
Posts: 3
Joined: Sun May 11, 2008 6:03 am

SOLVED: Icon generation?

Post by QQ_ghost »

I am aware that wine will create a .xpm for the icon in the program file, but how would I create it after a "manual install"?

I recently copied mspaint from my win partition to my wine installation and would like an icon on the user desktop link. Several programs I have for windows may require a manual install, so I would like to know how the .xpm is created.
Last edited by QQ_ghost on Sun May 11, 2008 9:44 pm, edited 1 time in total.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Icon generation?

Post by vitamin »

QQ_ghost wrote:I am aware that wine will create a .xpm for the icon in the program file, but how would I create it after a "manual install"?

I recently copied mspaint from my win partition to my wine installation and would like an icon on the user desktop link. Several programs I have for windows may require a manual install, so I would like to know how the .xpm is created.
You have to have .lnk file for this. You can't force Wine to extract just an icon.
QQ_ghost
Newbie
Newbie
Posts: 3
Joined: Sun May 11, 2008 6:03 am

Post by QQ_ghost »

What do you mean I need a .lnk? If I create a MS soft-link file, the icon will appear on my desktop?

EDIT: Since a .lnk file is a binary, and there is no way of me manually generating one, how would I edit one? I went into windows and generated one but it points linux to the windows partition. How do I change it to reflect a different spot?

Or, how would I change the windows .lnk file forwarder to access the wine desktop, instead of the windows filesystem?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

QQ_ghost wrote:What do you mean I need a .lnk? If I create a MS soft-link file, the icon will appear on my desktop?

EDIT: Since a .lnk file is a binary, and there is no way of me manually generating one, how would I edit one? I went into windows and generated one but it points linux to the windows partition. How do I change it to reflect a different spot?

Or, how would I change the windows .lnk file forwarder to access the wine desktop, instead of the windows filesystem?
You can do that with proper API calls. Or you can just install that software on Wine.

This is so complicated for a reason - extracting icons from executables might be considered copyright infringement. You can always use 3rd party resource editors to get those icons out.
QQ_ghost
Newbie
Newbie
Posts: 3
Joined: Sun May 11, 2008 6:03 am

Post by QQ_ghost »

SOLVED:

I used a windows program called iconjack32.exe to extract the icon and save to an .ico file. Next, I used kolourpaint to convert the image to x-pixmap. Problem solved.
Locked