These two changes should be added here as well. For the GUI shim, we'll however compile separate shims to avoid bugs.
For the former, we'll try to do this in a backwards compatible way. But overall this is a good change, as this will prevent system breakages through often accessing sensitive variables such as the PATH.
Scoop is currently adding shim improvements, namely:
#5840
and
https://github.com/ScoopInstaller/Scoop/commit/353137f0a9aef9a3da31eed62f4554d24af19bf4
These two changes should be added here as well. For the GUI shim, we'll however compile separate shims to avoid bugs.
For the former, we'll try to do this in a backwards compatible way. But overall this is a good change, as this will prevent system breakages through often accessing sensitive variables such as the PATH.