How to remove Wine program entries from the menu

Categories:  Linux
Labels:  OS

I had installed some programms with Wine, but I removed Wine from my computer. Now when I browse all applications in the Unity menu, the symbols of the programms I installed with Wine are still there. How can I remove them?


Carefull - mistakes when using sudo to delete stuff can be disastrous!

$ rm ~/.local/share/applications/wine*.desktop
$ sudo rm /usr/share/applications/wine*.desktop

You might need to log out and back in to see the changes, depending on the desktop you are using (kde, gnome, …).

How can I remove orphaned start menu entries?

For some reason I have a bunch of left-over start menu entries from applications (e.g, Gnome Do, Synapse, Leafpad.) and was wondering if there’s a way to remove all orphaned entries for applications that are no longer installed?


You can use the following command to list application icons that link to nonexistent programs:

for i in {/usr,~/.local}/share/applications/*.desktop; do which $(grep -Poh '(?<=Exec=).*?( |$)' $i) > /dev/null || echo $i; done


I suspect you’ll find that most of yours are customized icons in your home folder, since these are not automatically cleaned up by the package manager. If this is the case and you’d like to trash trash-cli them all at once, you can use a modification of the previous command:

for i in ~/.local/share/applications/*.desktop; do which $(grep -Poh '(?<=Exec=).*?( |$)' $i) > /dev/null || trash $i; done

Or, of course, browse to ~/.local/share/applications/ in Nautilus and trash them via the graphical interface.


Related Posts:
Social Profiles


This web accept cryptocoin donations
BTC address, LTC, ETH, Uphold:
Why donations?