Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Bezalelohim opened this issue Jun 28, 2024 · 1 comment
Milestone

Comments

@Bezalelohim
Copy link

Bezalelohim commented Jun 28, 2024

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.

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.

Suggestion for implementation:
Having an opt-out toggle for the --unused flag in the settings of cosmic-store, this will automatically use the unused command when uninstalling from cosmic-store. For users who do not want this feature (Stability reasons or whatever it maybe) can do so by turning off the toggle in the settings, but it should be on by default.

@Bezalelohim Bezalelohim changed the title [Feature Request] Option to make the flatpak uninstall --unused when updating Nvidia drivers in the cosmic Store. [Feature Request] Option to make the flatpak uninstall --unused Command run automatically when updating Nvidia drivers in the cosmic-store. Jul 21, 2024
@Bezalelohim Bezalelohim changed the title [Feature Request] Option to make the flatpak uninstall --unused Command run automatically when updating Nvidia drivers in the cosmic-store. [Feature Request] Option to run the flatpak uninstall --unused Command automatically when updating Nvidia drivers in the cosmic-store. Jul 21, 2024
@py-crash
Copy link

py-crash commented Aug 15, 2024

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

@Bezalelohim Bezalelohim changed the title [Feature Request] Option to run the flatpak uninstall --unused Command automatically when updating Nvidia drivers in the cosmic-store. [Feature Request] Option to run the flatpak uninstall --unused Command automatically when updating in the cosmic-store. Aug 16, 2024
@Bezalelohim Bezalelohim changed the title [Feature Request] Option to run the flatpak uninstall --unused Command automatically when updating in the cosmic-store. [Feature Request] Option to run the flatpak uninstall --unused Command automatically when "updating / uninstalling" in the cosmic-store. Aug 16, 2024
@WatchMkr WatchMkr added this to the alpha 3 milestone Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Alpha 3 Apps ToDo
Development

No branches or pull requests

3 participants