-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
What if current working directory was used instead of <long package path> #382
Comments
@jazzdelightsme Thanks for the feedback! I've tagged this as a "Feature". There may be some other preferences, but the default of the working directory seems reasonable at first glance. |
I don't think that's a good idea, there is no guarantee that winget/the current user has write-access to their current working directory. Additionally, there is a long-standing confusing behavior where changing the working directory in PowerShell (which is the shell that winget will mostly be run from) does NOT change/update the Current Directory in the .NET sense. E.g. try this:
So depending on how winget would get the working directory of the user, it would likely unexpectedly be "wrong". I would suggest just copying to and running rom So in the end, the directory has to be configurable and I would not change the current default. |
We're getting ready to release a new version with the download/execution directory as %Temp% #1146 |
I submitted a PR (#256) for the kdenlive standalone installer (7Zip self-extracting archive). It supports the --location switch, so that's good.
Q: But if you don't pass --location, then where does the installer extract to?
A: To an undiscoverable temp path like "C:\Users\username\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\TempState\WinGet".
Perhaps the download could be performed in that location, but once it's downloaded, it's not great to actually run the EXE from that directory. Perhaps after downloading, the EXE could be moved to winget's current working directory, and be run from there. Then the resulting files that it extracts would be at least slightly more discoverable.
The text was updated successfully, but these errors were encountered: