Is it a good idea to replace (sub-)apps scattered around a system with links to scoop shims? #4873
Replies: 4 comments 4 replies
-
Hey! I'm not sure I understand your question. Could you explain what you're trying to achieve with the code snippet, preferably with an example app? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Apps, yes, their dependencies, not so much
They need to ship it too, just listing won't help
There's no question of private or public libraries, just different versions. Why would Windows need to be more like Linux? Windows, despite having a lack of OS-level package manager, never faces the problem of missing or incompatible dependencies. If you've used Linux as a daily driver, you'd know what I'm talking about - all apps depend on the same system level dependencies, which prevents app updates from happening in a timely manner, and even if everything is up to date, a random app or service will suddenly break some day because of backward incompatibility with a Python version or a Qt library version. Both of them have a vastly different security model, neither is "more secure". |
Beta Was this translation helpful? Give feedback.
-
You can't do that for system level apps, you can only have one version at a time. And if that version is too old or too new, well, you're going to have a lot of trouble.
You can already specify dependencies (and optionally, their versions) for an app in the manifest itself. |
Beta Was this translation helpful? Give feedback.
-
Like so:
foreach ($shim in dir $scoop_global\shims\*.exe) {foreach ($linked in dir $shim.name -r | select fullname) {New-Item -Force -ItemType SymbolicLink -Path $linked -Target $shim}}
I know the standard answer to this is "Of course not! There is a high chance it'll break a lot of stuff," but hear me out. Why have dozens of copies of 7zip, or similar apps, scattered around app folders? Wouldn't it be great if all apps in a system linked back to a central app pool (if not db)? Of course, different apps may require different versions of other apps they use in common, or even various flavours of the same app version, but that's all easily managed in a central app db. Scoop already does that. In fact, isn't that something OSs should do natively (and in so doing have greater security around apps installed in the system, rather than let them be filed away in sub-sub-sub-...-sub-folders anywhere in storage?
Just a thought.
Beta Was this translation helpful? Give feedback.
All reactions