Assigning an panel icon to a program

Nick Schermer nickschermer at
Fri Apr 15 13:50:55 CEST 2011

On Fri, Apr 15, 2011 at 12:40 PM, Morten Bo Johansen <mbj at> wrote:
> Hi,
> I am sure this is very simple, but somehow I cannot figure out how to
> assign an icon to a (self-compiled) program so that this icon shows up in
> the panel when the program is running. Currently when I run my editor,
> Xjed, it is represented by a generic terminal icon in the panel. I have
> tried copying the xjed.xpm into /usr/local/share/icons/hicolor/* and then
> run gtk-update-icon-cache on that directory. It seems to have the effect
> of assigning the icon to xjed when I work with Thunar and choose e.g. the
> "Properties" -> "Open (file) with" dialog. Then the icon shows next to
> the program name. But it does not show up in the panel?

The application set this icon (or icon-name) when started. However you
probably run the application inside a terminal, so you can launch a
terminal too with the --icon argument in case you use the Xfce
terminal. (terminal -I xjed -x xjed)


More information about the Xfce mailing list