I'm using Ubuntu 22.04 Jammy Jellyfish (x86-64) server install with Cinnamon 5.2.7.
(System installation steps can be found here)
This problem also did occur on Ubuntu server 22.10 installation.
I've seen that applications installed on the system are present in the menu.
New installed applications are also automatically added to it.
Does Cinnamon Menu not auto-refresh application shortcuts?
I use a separate /home partition-drive and only reinstall the system so I always get my files back after a reinstall. The point is I can't rapidly check in the menu what I still need to install since all my applications are still present in the menu, even if the application is not reinstalled yet. This is very inconvenient.
It seems it does automatically add new installed applications, but it doesn't automatically delete the shortcuts if the application was removed from the system.
How could I make it refresh/renew the shortcuts with the current available applications on the system ?
The Cinnamon menu comes with a reset option called "Restore System Configuration". But this doesn't set it to match with the available applications on the system. It rather reset it to the default shortcuts the Cinnamon menu should have on its install, seems to me.
This question has also been posted on the Linux Mint forum here:
[UBUNTU] Cinnamon Menu auto-refresh application shortcuts ? - Linux Mint forum
Is there a chance I could use the /home/wingarmac/.local/share/applications/
location to make a script that would search for the outdated .desktop files ? (reference)
I search how to list installed applications and their path. I found how to list installed packages here.
I used the command:
dpkg -l |awk '/^[hi]i/{print $2}' > installation.txt
Now I'm looking how to search the exec path for each line in the installation.txt
file output.
But:
- it doesn't sort the types of package: apllication/driver/plugin/...
- it doesn't list only GUI applications
- It doens't give me the path to launch it.
To make my search for this it get rather complicated, but is it still possible?
The other way would be to make a script that would check the .desktop file for error. How could I do it this way eventualy ?
Ubuntu Cinnamon menu execution path examples:
protontricks --no-term --gui
/opt/google/chrome/google-chrome --profile-directory=Default --app-id=*some long id here corresponding to my gmail*
wine C:/windows/notepad.exe
/usr/sbin/gparted %f
pkexec lightdm-settings
dbus-send --print-reply --dest=org.Cinnamon /org/Cinnamon org.Cinnamon.ToggleKeyboard
I don't know where to start, since there are so much variables.
This post treats the same issue, but the answer is that the problem has been solved by waiting for an undefined cron-task. This is no solution to me, since I would like to apply manually this cron-task if it exists to purge the not working shortcuts immediately.
So, could anyone elaborate what this cron-task is and how I can apply it when needed to me ?
/usr/share/applications/
. If you have removed applications, possibly you need to purge the applications folder in your home directory. Typically this would be empty anyway.