marticliment / UniGetUI

UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers
https://www.marticliment.com/unigetui/
MIT License
12.9k stars 443 forks source link

[ENHANCEMENT] "Run now" button for Scoop cleanup on startup option #1716

Closed redactedscribe closed 8 months ago

redactedscribe commented 9 months ago

Please confirm these before moving forward

Describe the improvement

There is a Startup option Enable Scoop cleanup on launch which can be enabled. I'd rather have this be a manual process. It would therefore be convenient to have a "Run now" button or similar to the right of this option to trigger it at will.

Describe how this improvement could help users.

When you know you don't need any particular old version of a Scoop-installed app, scoop cleanup --all (I presume) can be run via this button. Otherwise, old versions are either always deleted, or never deleted. This button gives you control over when.

marticliment commented 9 months ago

Check under Scoop Settings

redactedscribe commented 9 months ago

I presume you mean Reset Scoop's global app cache?

wingetui_2024-01-18_11-32-55

I'm not sure what "global app cache" really refers to and this is after extensive use of Scoop. I use two commands to reclaim space when using Scoop: scoop cleanup --all (removes old versions of updated packages) and scoop cache rm --all (removes the download cache). I assume the former happens on Enable Scoop cleanup on launch, but what happens on Reset Scoop's global app cache?

marticliment commented 9 months ago

It does not run the cache rm --all command. I will fix this

redactedscribe commented 9 months ago

I also suggest changing the option's name to something more accurate. There is no --global option or anything global (as far as I can tell) about removing Scoop's cache.

Scoop's help on the cache command says:

...
Scoop caches downloads so you don't need to download the same files
when you uninstall and re-install the same version of an app.
...