You are not logged in.

#1 2013-01-01 08:18:58

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

[Solved]Apps with no icon in task switcher, ...

... window buttons or title bar.  As I understand it, apps get their icon from the .desktop file.  I created such a file for rdesktop:

$ cat /usr/share/applications/rdesktop.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=rdesktop
GenericName=rdesktop
Comment=Connect to Windows
Exec=rdesktop
TryExec=rdesktop
Icon=rdesktop
Terminal=false
Categories=Utility
StartupNotify=true

I got an entry in the XFCE Applications menu (with the icon), but there's still no icon in task switcher, etc.

The icon I used exists in /usr/share/icons/hicolor in the following variants:
16x16 22x22 24x24 32x32 48x48 256x256

The same variants exist for the gimp icon for example.

Any ideas?

Edit: I've run gtk-update-icon-cache on the hicolor directory.

Last edited by alphaniner (2013-01-01 23:04:57)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#2 2013-01-01 12:49:34

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,554
Website

Re: [Solved]Apps with no icon in task switcher, ...

Menus often use .desktop files, but most task switchers use the icon stored by the client window in the _NET_WM_ICON or WM_ICON_NAME atoms.  If the client program does not set this, no amount of fiddling with desktop files will help.  There is a seticon utility that will do just what you want, but it has to be run every time the program is launched.  I'm trying to find it, but it seems to have temporarily slipped under my radar.  I *thought* it was just called xseticon, but that name isn't turning anything up.

EDIT: I was right on the name: http://www.leonerd.org.uk/code/xseticon/
I'm not sure why it's been dropped to the AUR, but it is currently available there.

Last edited by Trilby (2013-01-01 12:51:40)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2013-01-01 23:00:46

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [Solved]Apps with no icon in task switcher, ...

Thanks.  I got it to work, but found it slightly cumbersome due to the need to divine the window ID.

I decided to try a graphical front-end but in the process found freerdp.  Freerdp is a more actively developed fork of rdesktop and ... actually has an icon!  Wa-hey!


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

Board footer

Powered by FluxBB