Icon for the win app running?

Questions about Wine on Linux
Locked
UselessRegister
Newbie
Newbie
Posts: 3
Joined: Sun Nov 20, 2016 1:09 pm

Icon for the win app running?

Post by UselessRegister »

Hi, new to all this, using Ubuntu 14LTS and wine. Absolutely amazed at how well wine works. I have been a msoft user and programmer since DOS-2.1. After just two weeks of Ubuntu, I can't understand why I have held out for so long but thanks to win10, that was the tipping point.

Anyway, is there some easy way to assign an icon to the Ubuntu Launcher for the wine app running and "Lock to Launcher?" Preferably get the icon embedded in the windows program, but not essential. I'd be happy to assign any icon just to differentiate between the current five "?" wine-app icons on the Launcher. :)

Thanks
User avatar
olivierfrdierick
Level 5
Level 5
Posts: 258
Joined: Thu Sep 13, 2012 12:09 pm

Re: Icon for the win app running?

Post by olivierfrdierick »

Hello.
This is a desktop environment question not related to Wine.
You'll have to ask on the Ubuntu support forum: https://ubuntuforums.org/showthread.php?t=1760257
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Icon for the win app running?

Post by Bob Wya »

UselessRegister wrote:Hi, new to all this, using Ubuntu 14LTS and wine. Absolutely amazed at how well wine works. I have been a msoft user and programmer since DOS-2.1. After just two weeks of Ubuntu, I can't understand why I have held out for so long but thanks to win10, that was the tipping point.

Anyway, is there some easy way to assign an icon to the Ubuntu Launcher for the wine app running and "Lock to Launcher?" Preferably get the icon embedded in the windows program, but not essential. I'd be happy to assign any icon just to differentiate between the current five "?" wine-app icons on the Launcher. :)

Thanks
User account created .desktop launchers are typically saved in:

Code: Select all

~/.local/share/applications/    # aka "${HOME}/.local/share/applications"
This command will find all the local user .desktop launchers:

Code: Select all

find ~/.local/share/applications/ -type f -name "*.desktop"
Replace the glob character (*) with something more specific (e.g. "*steam*".desktop) if required.

You can edit / add the:

Code: Select all

Icon=...
field to set a new icon for any launcher you've created.

Wine saves extracted .png icons (from the native Windows .ico files) by default under:

Code: Select all

.local/share/icons/hicolor/    # aka "${HOME}/.local/share/icons/hicolor/"
with an application name and appended hash value.

To find all the application icons in this directory:
find .local/share/icons/hicolor/ -type f -name "*.png"
Again you can replace the glob character (*).

So for:

Code: Select all

.../.local/share/icons/hicolor/256x256/apps/steam_icon_49520.png
The icon name (to put in the .desktop file) will be: Icon=steam_icon_49520


See xdg desktop: Desktop Entry Specification for more information ...

Hope that clears things up a bit!
Bob
Locked