This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Can't remove applications from KDE Menu

Tags: None
(comma "," separated)
ennai
Registered Member
Posts
2
Karma
0
If i open the KDE Menu Editor and remove some applications and save, it changes nothing, when i reopen the KDE Menu Editor the application that i removed is still there. Why? ._.
User avatar
waynes
Registered Member
Posts
122
Karma
0
Are these 3rd party applications that you have now uninstalled, or are you trying to remove menu entries for applications that are still installed?
The reason I ask is that sometimes 3rd party apps leave behind there menu entries when uninstalled.
From memory you have to delete the entry from the /Home/.local/share/applications folder. Then logout & back in again.
raddison
Registered Member
Posts
515
Karma
0
waynes wrote:Are these 3rd party applications that you have now uninstalled, or are you trying to remove menu entries for applications that are still installed?
The reason I ask is that sometimes 3rd party apps leave behind there menu entries when uninstalled.
From memory you have to delete the entry from the /Home/.local/share/applications folder. Then logout & back in again.


When one removes an application, everything related to that application (ex. dependencies and so forth) should be removed as well. At least that's my take on it. From my experience I can tell that Discover does not perform a full cleanup when removing applications. "sudo apt autoremove" does. I'm not even getting into 3rd party applications.


Proud to be powered by Plasma
User avatar
waynes
Registered Member
Posts
122
Karma
0
OK. It could be an issue with Discovery them. I must admit I don't use it. For me there's only 2 ways to install/Remove apps, and that's by either the command line or if you prefer a gui then synaptic. The only time i've had entries hanging around in the menu is when i've installed 3rd party .debs.
To clean things up I use:
Code: Select all
sudo apt remove --purge nameofapp
sudo apt autoremove
sudo apt autoclean

From synaptic you can do this & clean residual files up as well.
raddison
Registered Member
Posts
515
Karma
0
waynes wrote:OK. It could be an issue with Discovery them. I must admit I don't use it. For me there's only 2 ways to install/Remove apps, and that's by either the command line or if you prefer a gui then synaptic. The only time i've had entries hanging around in the menu is when i've installed 3rd party .debs.
To clean things up I use:
Code: Select all
sudo apt remove --purge nameofapp
sudo apt autoremove
sudo apt autoclean

From synaptic you can do this & clean residual files up as well.


I admit the same. Namely that I like the idea of Discover but I don't use it that often anymore, as it is not yet finished. All that said, Discover has been progressing a lot but ... I prefer Konsole. Haven't checked Synaptic (it's a gtk app) lately as the last time I had seen it kinda looked inconsistent with the VDG guidelines. Should be reworked with Qt. It has been reported Muon has improved but I'm not sure.


Proud to be powered by Plasma
User avatar
claydoh
Registered Member
Posts
1170
Karma
9
OS
Without further input from the OP, my guess on the issue is a problem with file permissions on the user's local files.
The menu editor does not truly remove or move the systemwide menu entries, but places the changes in their local configs, which take precedence over the stock systemwide menu structure. So, say I delete the menu entry for Firefox in Applications > Internet, it really is not deleted, an entry is placed in the file ~/.config/menus/applications-kmenuedit.menu noting that the entry for Firefox in that location is not to be shown. The same thing happens for entries that have been moved or edited. The changes made are recorded in this file. The removal of entries not taking place in kmenuedit may be a classic symptom of the the file's or the directory's permissions changing for some reason.

As to apt, If for some reason, uninstalling a program does not remove its menu entry, using apt autoremove, --purge, or autoclean after it has been uninstalled will not remove any bits left behind by something it thinks is not installed.

The --purge switch will remove any system configs and files, but will not remove any local user configurations or files

As for the others, to quote the manpage for apt-get:
clean
clean clears out the local repository of retrieved package files. It removes
everything but the lock file from /var/cache/apt/archives/ and
/var/cache/apt/archives/partial/.

autoclean (and the auto-clean alias since 1.1)
Like clean, autoclean clears out the local repository of retrieved package
files. The difference is that it only removes package files that can no longer
be downloaded, and are largely useless. This allows a cache to be maintained
over a long period without it growing out of control. The configuration option
APT::Clean-Installed will prevent installed packages from being erased if it is
set to off.

autoremove (and the auto-remove alias since 1.1)
autoremove is used to remove packages that were automatically installed to
satisfy dependencies for other packages and are now no longer needed.


Looking the man page for apt, it adds a bit more about autoremove:
You should check that the list does not include applications you have grown to like even though they were once installed just as a dependency of another


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]