pop-os / cosmic-store

WIP COSMIC app store
GNU General Public License v3.0
72 stars 41 forks source link

[Feature Request] Option to run the `flatpak uninstall --unused` Command automatically when "updating / uninstalling" in the cosmic-store. #104

Open Bezalelohim opened 2 months ago

Bezalelohim commented 2 months ago

For Example, removing Nvidia Drivers, automatically on the side when updating, will save a Ton of disk space by default. Beginners would not know to update and then run the flatpak uninstall --unused command, and they shouldn't have to. Having an opt-out toggle (on by default) in the settings to run automatically when downloading a flatpak would be useful.

This is how the drivers pile up on the system when the unused command is not run.

org.freedesktop.Platform.GL.nvidia-525-60-11
org.freedesktop.Platform.GL.nvidia-525-78-01
org.freedesktop.Platform.GL.nvidia-xxx-xx-xx

Having a provision to automatically remove that would be useful.

py-crash commented 4 weeks ago

Generally a lot of unneeded dependencies are left behind when using the store. For example installing Flatseal from the store will install the following flatpaks:

$ flatpak list
Name                                             Application ID                                 Version            Branch                 Installation
Flatseal                                         com.github.tchx84.Flatseal                     2.2.0              stable                 user
Mesa                                             org.freedesktop.Platform.GL.default            24.1.3             23.08                  user
Mesa (Extra)                                     org.freedesktop.Platform.GL.default            24.1.3             23.08-extra            user
openh264                                         org.freedesktop.Platform.openh264              2.4.1              2.4.1                  user
GNOME Application Platform version 46            org.gnome.Platform                                                46                     user
Pop Gtk theme                                    org.gtk.Gtk3theme.Pop-dark                                        3.22                   user

However clicking uninstall on the store will only uninstall Flatseal and leave all the other flatpaks behind. This could amount into a lot of disk-space wasted in a longer running install.

flatpak uninstall --unused should be run after every uninstall/update on the store