Disable icon extracting

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
cenarius
Level 1
Level 1
Posts: 5
Joined: Sat Jan 21, 2012 9:43 am

Disable icon extracting

Post by cenarius »

Hello everyone!

First I would like to thank every people who worked/work on the Wine project, this is really fantastic!

One thing I am wondering though, I set up an application launcher to launch a Windows application via Wine (namely World of Warcraft). I set a particular icon to that launcher. (I made a custom icon for WoW to suit my icon theme)

The problem is that wine (or ubuntu, that can be the problem as well), keeps using the real exe icon to refer to the application once it is launched.
So the icon displayed in the dock and in the alt-tab window is not the one I made but the original exe one and is too small for the alt-tab window, causing rendering issues with pixels.

I removed the icoutils package which I thought was responsible for Ubuntu forcing the display of the original exe icon but it had no effect.

I would like to have my custom icon displayed as the application icon when launched, or at least the same "wine" icon for all wine applications, which will suit my icon theme even if it will be the same for all windows applications.

What are your thoughts about this issue? Is it wine related or is it Ubuntu?
I used the Wine Ubuntu PPA and reverted to the standard Ubuntu repository, but no change.
If it is not wine, how can Ubuntu extract the icons without icoutils?
If it is not ubuntu, how can I prevent wine to use the original icon, allowing me to use my custom icon?

Here is a screenshot of the dash displaying the wrong icon. You can see my custom made icon as the second application launcher, and the one actively displayed at the bottom. The rendering issue related to the wrong size of the icon is not as aggressive as in the alt-tab window, but I was unable to take a screeenshot of the alt-tab pop-up window, it simply does not appear on the screenshots.

Screenshot at: http://dl.dropbox.com/u/188481/wow_icon ... forums.png

Thank you in advance!

PS: English is not my native language so I apologize for my spelling/grammar...
User avatar
dimesio
Moderator
Moderator
Posts: 13368
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

cenarius
Level 1
Level 1
Posts: 5
Joined: Sat Jan 21, 2012 9:43 am

Post by cenarius »

Thank you for the fast reply!
I disabled the winemenubuilder, but it had no effect.
I'm sure it is disabled as I have the error line when launching my application.
Maybe wine created an icon the first time I launched the exe and saved it somewhere? I actually already looked for such an icon but was unable to find it...
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Disable icon extracting

Post by vitamin »

cenarius wrote:The problem is that wine (or ubuntu, that can be the problem as well), keeps using the real exe icon to refer to the application once it is launched.
That's the way it's meant to be. Link/shortcut icon on your desktop has nothing to do with the icon application puts on his window(s). There is nothing you can do about it, short of hacking WoW's executable and replacing it's icon with the one you created.
cenarius
Level 1
Level 1
Posts: 5
Joined: Sat Jan 21, 2012 9:43 am

Post by cenarius »

I'm aware of that, but it wasn't actually the case before.
In the previous version of Ubuntu, I had a wine icon for every wine application, and I was happy with it.
I do not want to see the original icons which does not fit with my icon theme.
My question would thus become: Who changed the old behavior to implement this? Was it Wine or Ubuntu?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

cenarius wrote:I'm aware of that, but it wasn't actually the case before.
A long long time ago Wine wasn't properly setting application's window icons. It has been fixed. If you really need to know which patch fixed it - try reverse regression testing. But you might have to start with wine-1.2.0 if not earlier.
cenarius
Level 1
Level 1
Posts: 5
Joined: Sat Jan 21, 2012 9:43 am

Post by cenarius »

So you think wine does that?
Ok I'll try some older versions...
The strange fact is that I have a similar Linux Mint installation (which is based on Ubuntu) with, I think, the same wine version, and it doesn't display the original exe's icons...
I'm going to check the wine versions and origins (ppa and so on) of both wine versions and let you know, I'll check that tomorrow. (time difference)
Thank you for helping me! ;-)
cenarius
Level 1
Level 1
Posts: 5
Joined: Sat Jan 21, 2012 9:43 am

Post by cenarius »

I tried some older versions but it had no effect other than crashing the game. Maybe it wasn't supported on earlier versions but it could mean my problem is not related to the wine version as I played for long with wine without having this issue on my previous system.
I don't think the problem is related to a newer version of wine as a similar setup running Linux Mint and wine 1.3.37 is not affected by this issue.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

cenarius wrote:I tried some older versions but it had no effect
Which ones have you tried?
Locked