Changing app's main menu item's icon

Hi all,
I use the main menu editor to find the current icon.
It is somewhere under /usr/share/icons etc.
I then overwrite that icon with my own one, change the icon selection to some other random icon and then come back to the original name. Now the preview in the selection dialog displays the one that I've overwritten it with, and once I confirm the selection the properties window also displays my new icon.
I then save the properties and log out of Mate.
When I log back in, I still see the old icon in the main menu.
I open the menu editor again, and in the properties of the app I can see my new icon, but it does not display in the menu.
I reboot Linux, but the menu still displays the old icon.

What is necessary to permanently purge the old icon and to display the one that is now pointed at by the selection in the properties dialog for the app?

1 Like

But why? Does not the old and tried method work? I.e. open menu editor through System > Preferences > Look and Feel > Main menu, select an item, click Properties, click icon button in the left upper corner and select a new icon...

1 Like

That's the same as I did.
Still displays the old one in the menu and the new one in the properties dialog.

Well, may be menu icons are cached somewhere. I'd try to relogin and see. Can not think out anything else.

Reboot is not enough?

ARGH! The icon in the menu is not the same as the icon pointed at by the properties dialog! Once I replaced all of resolutions, i.e. 16x16 through whatever 256x256, the icon instantly changed. The properties dialog's selector button is misleading because it points only at one of them but later the menu displays a different resolution.

Oh, reboot is more than enough. Sorry, I'm out of ideas so far.

Hi, @lihuto and welcome to the Ubuntu MATE Community!

I have had this too. I found if you wait for it to change and then click back into the name box but don't change anything, then wait a bit and it should change in the menu too. Not sure if that is your problem but it would be worth a try. Just go slow and have patience when changing the icon.

I found this... not sure if it will help or not...

Icon cache issues : The icon cache might be outdated or corrupted, causing icons to not update properly. Try restarting the icon cache service:

sudo service gnome-settings-daemon restart

Or this maybe?

Reset icon cache : If the icon cache is corrupted, try resetting it using

sudo rm ~/.cache/icon-theme-cache

3 Likes

No, it won't. Scroll up for the chosen solution.