I was looking in the ~/.local/share/plasma/plasmoids/ folder and found remnants of old plasmoids I’ve long ago removed. Why doesn’t KDE remove those? For examples, I long ago tried simpleweather then removed that plasmoid in preference of wunderground’s weather widget but I still see simpleweather in the plasmoids folder. So it seems to me that old removed plasmoids are not fully cleaned up.
Long ago? Maybe you didn’t clean up after upgrading from Plasma 5 to Plasma 6.
I don’t think Plasma should be removing third party apps you installed when upgrading.
ls -ltr .local/share/plasma/plasmoids/
total 36
drwxr-xr-x. 4 mos mos 4096 Jan 26 2024 AndromedaLauncher
drwxr-xr-x. 3 mos mos 4096 Mar 21 2024 org.kde.olib.thermalmonitor
drwxr-xr-x. 3 mos mos 4096 Mar 21 2024 org.kde.thermalMonitor
drwxr-xr-x. 3 mos mos 4096 May 26 22:26 Minimal.chaac.weather
drwxr-xr-x. 4 mos mos 4096 May 26 22:26 com.github.zren.simpleweather
drwxr-xr-x. 3 mos mos 4096 Aug 7 09:43 org.kde.plasma.advancedradio
drwxr-xr-x. 4 mos mos 4096 Oct 11 08:56 com.github.k-donn.plasmoid-wunderground
January, March and May are sort of oldish.
I’m not sure when I upgraded from Fedora 40 to 41 Beta but of those plasmoids only the one with “wunderground” in the name is a plasmoid applet I’m currently running on the desktop.
I suppose I’ll just have to remove all those other than wunderground manually when KDE isn’t running and see if these junk entries continue to accumulate as I add and remove plasmoids from now on. I’m currently on KDE 6.2.0 so this might be something that’s fixed now so the dead ones are from KDE 5*
I don’t think Plasma should be removing third party apps you installed when upgrading.
What do third party apps have to do with this? I’m talking KDE plasmoid applets like you install from the desktop’s menu: “Enter Edit Mode”-> “Add or Manage Widgets…” not third party apps.
All those widget you downloaded and installed are third party and community-provided.
Generally speaking, in Linux things left in one’s $HOME are never touched. even when things have been removed or uninstalled elsewhere.
Hmm, okay, a semantics detail then.
So if I install plasmoid applets and then remove it from the desktop, I can assume KDE isn’t going to clean up the code ?
So a maintenance job would be to occasionally go in ~/.local/share/plasma/plasmoids/ and clean up the dead code left by plasmoids I’ve used and removed. For example just now I’ve removed the “Condensed Weather” plasmoid widget and I still see this code related to it:
ls -l ~/.local/share/plasma/plasmoids/com.github.zren.condensedweather/
total 12
drwxr-xr-x. 5 mos mos 4096 Jul 12 17:24 contents
-rw-r--r--. 1 mos mos 581 Jul 12 17:24 metadata.json
drwxr-xr-x. 2 mos mos 4096 Jul 12 17:24 translate
That’s fine and I can do that I guess but I’m just wondering why aren’t plasmoids setup to clean up completely upon removal? I don’t see why being third party matters, that should be standard to the design requirements to get into the plasma widget repos.
the general design idea is not to delete things from the /home directories because there is user created content in there and the system doesn’t know if you want to keep it or not.
even if you uninstall a software package, there will still be .config and .local files associated with it for settings and such.
in case you only uninstalled it by accident or in case you want to move your /home to new machine where those software are not yet installed, they will find their configurations and settings waiting when you reinstall the package.
many of those plasmoids also have settings and configs that you wouldn’t want to lose just because you accidentally removed it from your desktop.
there probably is a need for a user /home clean-up app that can go thru all your settings and alert you to those that you are no longer using, either because you don’t have that package installed or you don’t have that plasmoid on your desktop.