Page 1 of 1

[SOLVED] Deinstall application from the Mint Menu

Posted: Tue Nov 06, 2018 11:45 pm
by dimic
Linux Mint 18.3 Sylvia x64 Cinnamon
Kernel 4.15.0-36-generic
Ubuntu 16.04.1
Cinnamon 3.6.7

In the Mint Menu (Cinnamon main menu), you can right-click an application and click 'Deinstall'.
You are asked for the admin password and the corresponding software package is removed.

How/where is the software package assigned to the menu entry?
How is the package-removal invoked?
I have inspected a game in /usr/share/games, but found nothing.

Can I use this mechanism without a deb pkg?
I have got a game installed with a self-extracting tar file and a install/deinstall script,
but dpkg -r won't work.

Any hints will be appreciated!

Re: Deinstall application from the Mint Menu

Posted: Wed Nov 07, 2018 1:28 am
by smurphos

It runs the python-script in /usr/lib/linuxmint/common/

This script will perform apt-get remove if relevant or can run the flatpak removal script. In all other cases it will simply remove the menu entry.

Menu entries are created by applications .desktop files. Normal install location is /usr/share/applications. User added or modified entries will be in ~/.local/share/applications. Flatpak .desktop files are in /var/lib/flatpak/exports/share/applications

If the game as a deinstall script - use it. If it doesn't clean up the menu entry look for a corresponding .desktop file in the locations listed above.

Re: Deinstall application from the Mint Menu

Posted: Wed Nov 07, 2018 12:53 pm
by dimic
Thanx for the quick and profound reply!!!

So, I can use the deinstall from the menue only with apt packages and flatpacks,
not with self-extracting archives. The users of my game will have to start
a removal script manually.

Best Greetings, Dieter