I wanna change program icons. I previous versions I just went into /usr/share/applications and changed the icon of what I wanted. In 14.04 I repeat this and it doesn't work. Moreover, if I enter in /usr/share/applications being superuser I see that the picture has been changed, but if I enter without being superuser i see that there is no icon.

What's wrong?

  • A few questions; 1) How did you exactly edit the .desktop file(s) 2) what was the application? 3) Did you edit it with sudo or as root? In the last case it would make sense. 3) An application has no other icon than the one defined in the .desktop file. Is there a possible duplicate .desktop file? 4) Could you paste the .desktop file or at least the Icon= line? – Jacob Vlijm Nov 24 '14 at 20:34
up vote 8 down vote accepted
+50

The /usr/share/applications consist of .desktop files which are owned by root.

Eg :- For gedit, the default text editor.

enter image description here

Here, the Icon field shows the name of the .png or .svg file present in /usr/share/icons

Therefore, to change the application icon, you can either edit the .desktop file in /usr/share/applications to point to a new image by specifying its path or replace the .png or .svg file in /usr/share/icons with the icon image you wish to see.

Once you have done either of the above steps, refresh the icon cache using the command

gtk-update-icon-cache /usr/share/icons/<name of icon theme>

Alternatively, it is easier to use Main Menu or alacarte -

  1. Install Main Menu (package name is alacarte) alacarte Install alacarte
  2. Open Main Menu (alacarte)
  3. Click on a program and select Properties in the right menu.
  4. Click on the icon
  5. Browse for your new icon and click Open
  6. Close your programs properties
  7. Close Main Menu

enter image description here

You do not need to reboot to see the changes.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.