4

I changed the icon for some applications by editing their .desktop item and specifying the new icon. This works, because the new icon is shown correctly in the whisker menu (in the list of favorite applications, for example).

However, when the application is open, the icon shown in the xfce panel (in the window buttons item) is still the old one. Is there a way to change it also there?

Donovan
  • 141

4 Answers4

3

I think the only way is to change the "icon set", in XFCE it's under the

"Settings Manager" -> Appearance -> Icons

(I'm not sure how to create a new custom icon set though, that's probably answered in another question or website somewhere)


Or maybe I missed the icons that you want changed... the minimize - maximize - close buttons?

They can be chanced with other themes in the

"Settings Manager" -> "Window Manager" -> Style

Settings page (and you can re-arrange & pick the visible buttons too).

Xen2050
  • 8,943
1

sorry for necroposting but I think this is relevant.

So I think the issue here arises from the fact that the icon name and the program name differ in .desktop file.

For example, I have my own app I am developing and I wrote a .desktop file for it. At the start, my Exec line contained the path to the executable at /usr/bin and Icon line had a path to /usr/share/pixmaps/. However the name of the executable was slightly different than the icon name itself. The program, when installed, shows the icon in Whisker menu and if I put the shortcut file on desktop, however no icon was shown when the program was running, only that blank icon - white window thingy.

Once I named my icon exactly like my executable name the icon started showing in the window buttons plugin on xfce panel.

I've tested this with Skype and Slack which show their icons correctly when installed because as mentioned before, the entries in .desktop files for Exec= and Icon= lines have the same name. Then I proceded to rename those icons and as expected their icons no longer showed in window buttons.

I'm on Xubuntu 20.04.1, Xfce 4.14.3.

Hopefully this helps someone!

antisa
  • 181
1

use xseticon, e.g. for a window named htop

xseticon -name Htop /usr/share/pixmaps/htop.png

put it in a shellscript (make it executeable) and point your .desktop file's Exec= line to it

xterm -T Htop -e htop 
sleep 1;
xseticon -name Htop /usr/share/pixmaps/htop.png 
hans
  • 11
0

Solution Steps given below

  1. Right click on pannel > Pannel preference > appearnce > Set adjust size automatically
  2. Right click on pannel > Display > Set row size pixel to "38 or more"

enter image description here (NOTE = In Windows button Show button labels is off )

  1. After doing all of these step write this command in terminal

xfce4-panel -r