25

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?

htorque
  • 66,134
anton
  • 259

6 Answers6

32

It should be enough to remove the local wine folder ~/.local/share/applications/wine.

htorque
  • 66,134
8

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, ...)

z3ntu
  • 75
timo
  • 151
5

You can use alacarte in order to enable/disable applications using GUI.

enter image description here

Also you can directly remove the wine .desktop files on /home/user/.local/share/applications.

  • This is a cleaner solution and while i did clear out the wine related files (hidden files shown), this actually did it correctly. – Angry 84 Mar 26 '22 at 16:33
4

To remove these leftover menu entries, carefully paste the following commands into a terminal:

rm -f ~/.config/menus/applications-merged/wine*
rm -rf ~/.local/share/applications/wine
rm -f ~/.local/share/desktop-directories/wine*
rm -f ~/.local/share/icons/????_*.{xpm,png}
rm -f ~/.local/share/icons/*-x-wine-*.{xpm,png} }}}

Source: https://wiki.winehq.org/FAQ#Uninstalling

I posted it here as other answers weren't enough for me. Also I didn't use the last two commands as I didn't find such icon names manually.

lava-lava
  • 141
0

You can navigate to the Wine programs directory and delete files, then use Bleachbit (a CCleaner-like application) to clean broken links an so on.

Basharat Sialvi
  • 24,156
  • 8
  • 63
  • 84
fitojb
  • 2,233
0

Go to the Main Menu, scroll to where the left over entries for Wine programs are, now de-select them and then for each one click delete.

scouser73
  • 4,344