I just added and modified a .desktop
file in my /home/user/.local/share/applications
folder.
Is there any way to refresh the icon and caption in the list of applications without logging out?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityYou can restart the gnome-shell
by pressing Alt+F2 and then typing in either "restart" or just "r" and pressing Enter.
Otherwise I've noticed that it automatically refreshes .desktop
files after waiting a little while.
gnome-shell-3.20
From Desktop entries in Arch linux wiki, this works on later versions of Gnome:
update-desktop-database ~/.local/share/applications
Cross-posting this from the Ubuntu question site.
You need to:
gtk-update-icon-cache
Note: hicolor is the default theme which app developers should use. if you're making an icon theme, refresh your icon theme's folder instead.
sudo touch /usr/share/icons/hicolor ~/.local/share/icons/hicolor
sudo gtk-update-icon-cache
See (the only documentation I can find for this): https://fedoraproject.org/wiki/Packaging:Scriptlets#Icon_Cache
Please refer to the XDG Desktop Menu Specification. To update the list of available desktop launchers in the Applications menu please run:
xdg-desktop-menu forceupdate
The update will be reflected in couple seconds.
I tried a few ways, including these posted here, but none worked except this one
gnome-shell --replace & disown
Tried all of the above. Only thing that worked in the end was logging out, and logging back in.
Sometimes it's the simple things that work best.