Scoop icon indicating copy to clipboard operation
Scoop copied to clipboard

[Feature] Configure Scoop to store persist to a Custom Directory by changing `SCOOP_PERSIST`

Open candrapersada opened this issue 3 years ago • 5 comments

Feature Request

Is your feature request related to a problem? Please describe.

there is no information about persist portable

Describe the solution you'd like

add persist portable like
$env:SCOOP_PERSIST='F:\ScoopPersist'
[Environment]::SetEnvironmentVariable('SCOOP_PERSIST', $env:SCOOP_PERSIST, 'Machine')
# run the installer

Describe alternatives you've considered

candrapersada avatar Feb 18 '22 09:02 candrapersada

It might not be that simple. What will happen to persist for global apps if this variable is defined?

rashil2000 avatar Feb 18 '22 12:02 rashil2000

that's a good suggestion, but i dont endorse it.

It might not be that simple. What will happen to persist for global apps if this variable is defined?

for this case, just add another environment variable?: SCOOP_PERSIST_GLOBAL env variable game? i dont think this is the focus for scoop, but it is acceptable.

@candrapersada make a PR on this to change my(or ohter people's) opinion.

HUMORCE avatar Feb 18 '22 18:02 HUMORCE

Too many config options will result in a mess.

@candrapersada what is your use case?

rashil2000 avatar Feb 18 '22 18:02 rashil2000

I like the idea a lot. In my case I use multiple partitions to safe guard scoop apps but having this would be a good idea.

Make SCOOP_PERSIST default to the current scoop directory and only upon user interaction by adding or editing the variable as to not make it a mess.

Sei-lus avatar Feb 19 '22 00:02 Sei-lus

:sparkles: It will help move the npm bin and cache folder to the Dev Drive automatically.

kumarchandresh avatar Jan 07 '24 12:01 kumarchandresh