-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Ensure shortcut set explicit working directory #1319
Conversation
What are the side effects of not having a working directory set? |
The working directory will be "random" and some programs which need to read some files from the base directory will not work. After a second thought, while setting this always to the directory of the target should be fine and helps for those programs, it may still not work for all programs and it is not clean. I am thinking about adding a third item to the shortcut array like this:
in manifest:
Then we can just apply the properties to the created shortcut object by enumerating all the properties of the optional third object in manifest. Let me know which approach you prefer. Thanks |
@lukesampson P.S. Can you share info on how do you test scoop while developing it? The scoop command will be still using the installed version instead of the cloned/forked copy I made the changes? |
I used |
OBS Studio need a correct WorkingDirectory to start properly. Rufus doesn't start in portable mode if it can't find Every program installed on windows sets the working directory the same as the main executable. I think we should default to this behavior. |
Added with 83b8238 |
Ideally we should let the manifest specify a working directory, but for now let's at least make sure it is by default set to the directory of the shortcut's target.