[SOLVED] Deinstall application from the Mint Menu

Please post suggestions for improvement of Cinnamon here
https://github.com/linuxmint/Cinnamon
Post Reply
dimic
Level 1
Level 1
Posts: 11
Joined: Fri Jan 15, 2016 7:40 pm

[SOLVED] Deinstall application from the Mint Menu

Post by dimic » Tue Nov 06, 2018 11:45 pm

SYSTEM
Linux Mint 18.3 Sylvia x64 Cinnamon
Kernel 4.15.0-36-generic
Ubuntu 16.04.1
Cinnamon 3.6.7

SITUATION
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.

QUESTION 1
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.

QUESTION 2
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!
Last edited by dimic on Wed Nov 07, 2018 12:58 pm, edited 1 time in total.

User avatar
smurphos
Level 8
Level 8
Posts: 2254
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: Deinstall application from the Mint Menu

Post by smurphos » Wed Nov 07, 2018 1:28 am

Hi,

It runs the python-script in /usr/lib/linuxmint/common/mint-remove-application.py

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.

dimic
Level 1
Level 1
Posts: 11
Joined: Fri Jan 15, 2016 7:40 pm

Re: Deinstall application from the Mint Menu

Post by dimic » Wed Nov 07, 2018 12:53 pm

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

Post Reply

Return to “Cinnamon”