Cinnamon: Wine Taskbar Icons Incorrect

Created on 12 Jan 2015  ·  19Comments  ·  Source: linuxmint/cinnamon

Applications running in wine show the incorrect icon in the taskbar. Instead of showing the running application in wine they just show the wine Windows icon. They show the correct icon in the menu because the correct icon is listed in the .desktop file at ~/.local/share/applications.
I'm using LinuxMint 17.1 Cinnamon and this wasn't an issue when I was using the MATE desktop. This issue was previously closed but it is not fixed as several other people left comments after it was closed but apparently didn't create a new thread. This is a real PITA for those of us who have to run several Windows apps at once along with Firefox, file manager and Gedit etc. I have spent hours reading and trying different things to no avail.

BUG REPRODUCED

All 19 comments

This issue seems to be there since a long time. Can we reopen the earlier bug?
https://github.com/linuxmint/Cinnamon/issues/581
mtwebster had closed this bug due to inactivity.

@greyskier @manjukirans i have same issue with Far Manager. On the other hand WinMerge is showed with correct icon. so it could be Wine's bug.
What apps have wrong icons in your case?

I do genealogy and I need to have several windows open at once for Firefox,file manager, gedit, The Master Genealogist(Windows program), Dynamic Famiy Tree Compiler(Windows program), Gedpage(Windows program), plus usually Rhythmbox music player and Thunderbird. This makes the task bar entries very small and the Windows programs all end up resembling Firefox as their icons don't display properly making switching between them more difficult as you have to stop and look carefully.

Source Insight, Microsoft Office Applications, Teamviewer are the applications I have used and seen the problem. The reason this could be a Cinnamon issue rather than wine issue is because, this issue does not show up in MATE and Gnome. Also, if you use a dock (such as docky), the issue is not seen,

Also test any apps that run in a terminal, such as HTOP or Midnight Commander. Those are the two that cause this problem for me.

issue with Far Manager resolved by using winconsole instead of wine to launch the app

Could you test this again once you have Cinnamon 2.8.3 or greater.

checked with 2.8.3-20151111040009-trusty, HTOP, Midnight Commander, TeamViewer 10, Far Manager (wine) - not fixed

Also test any apps that run in a terminal, such as HTOP or Midnight Commander. Those are the two that cause this problem for me.

Don't they show up in the window list as a terminal? Do they behave differently in other DE's somehow?

It appears to be using the icon /usr/share/icons/Mint-X/apps/xx/wine.png rather than the one that is in the .desktop file

I can confirm this is still an issue in cinnamon 3.0.7

Copying my comment from #581

Maybe that will help:

I had similar issue with Notepad++ under wine under ubuntu with gnome-desktop.
Correct Notepad++ icon would show in 'Applications' menu/launcher but Alt-Tab showed default wine icon.

The solution I found:
My Notepad++ executable is called npp.exe.
Under ~/.local/share/applications I had a shortcut called npp.desktop with reference to correct icon.

I RENAMED npp.desktop TO npp.exe.desktop AND PROBLEM SOLVED.

It seems that Alt-Tab takes the "process name" and uses it to lookup a desktop file for the icon. Make sure the desktop file name matches the process name.

Perhaps this lookup procedure should have the ability to strip common windows extensions (namely .exe) from the name.

Is this ever going to be fixed? Using the suggestion that @gstavi gave above?

Still not fixed in Mint 19.

@GitHubIsToxic is this still an issue with Mint 19.3?

@icarter09 Yes, this is still an issue with Mint 19.3. Just a black icon appears in the taskbar, instead of the app icon.

Running Mint 19 Cinnamon 3.8.9 here; yes all Wine applications have the Wine icon (red square with Windows XP-ish logo).

taskbar_icons

For me it is not black, like @claudiux describes, although I vaguely recall seeing something like it years ago.

IIRC in previous Mint versions the icon in taskbar was the Wine glass icon instead of the current windows icon.

@GitHubIsToxic @claudiux: I haven't used Wine in awhile, but I thought the Windows icon in the image provided by @GitHubIsToxic was the correct icon. (Stupid question) Has this been tested lately in any other OS or DE?

I seem to recall icons were displayed properly on Ubuntu (Gnome 2 or XFCE), after Unity happened (and thus the taskbar disappeared) I switched to Mint. Somehow I know it's wrong in Mint, anyway.

*Edit: I googled and did find this screenshot (dated January 19, 2018) showing Wine 3.0 running on Mint (unknown version) and showing a proper icon for Notepad++ (which is Win32 only), so apparantly it worked (until) recently...but I can't specifically remember if it did for me. All I remember was the wine glass icon all over the place.


(https://www.zdnet.com/article/windows-apps-on-linux-wine-3-0-is-out-now-with-direct3d-10-11-support/)

*Edit 2: FYI, I'm running wine-4.0.3 here (on Mint 19 Cinnamon 3.8.9).

Was this page helpful?
0 / 5 - 0 ratings