[SOLVED] Deinstall application from the Mint Menu

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
dimic
Level 1
Level 1
Posts: 18
Joined: Fri Jan 15, 2016 7:40 pm

[SOLVED] Deinstall application from the Mint Menu

Post by dimic »

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 LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
smurphos
Level 18
Level 18
Posts: 8501
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Deinstall application from the Mint Menu

Post by smurphos »

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.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
dimic
Level 1
Level 1
Posts: 18
Joined: Fri Jan 15, 2016 7:40 pm

Re: Deinstall application from the Mint Menu

Post by dimic »

Thanx for the quick and profound reply!!!

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

Best Greetings, Dieter
Locked

Return to “Cinnamon”