-
Notifications
You must be signed in to change notification settings - Fork 10
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
"--shimgen-usetargetworkingdirectory" as default argument #128
Comments
While I appreciate that you believe this should be the default, let's talk a little more about how shimgen works so I can get an understanding of why.
There are a few that are badly behaved executables that require that you are actually in the folder where they exist to run them. That literally means you can not have them in the There are some GUI applications that are set to be run from the executable directory as the working directory in the start menu. I wonder if this is what you are running into? I also wonder if it would make sense to be able to provide an option to a shim to have it always start with arguments you want it to? And also a way to provide this option as part of creating shims for these badly behaved apps? |
Thank you for your fast and detailed response.
That's not the issue, I think it's uncommon to create shim's for "install" packages.
I think one outstanding feature of Chocolatey is the possibility to have all executables in the |
The 0.9.10 beta version of shimgen automatically determines it is a GUI and sets it appropriately without the need for a .gui file. |
I'm guessing you are saying this feature is great, not that it still needs this feature? If so, we think so as well. |
I agree. |
But I also like a consumer call to adjust the default behavior of a shim. |
I can only serve you with a "Feature Request" 😉 |
Based on some changes happening to the Chocolatey repositories, this issue has been moved from the chocolatey/shimgen repository to the chocolatey/home repository. |
It would be very useful to create executables with
--shimgen-usetargetworkingdirectory
as default argument. Cause many so-called portable apps expecting the config file in the current working directory. E.g. the executable for Regshot in$env:ChocolateyInstall\bin\Regshot-x64-Unicode.exe
can't find theregshot.ini
if not executed in$env:ChocolateyInstall\lib\regshot\tools\
. So you always have to run$env:ChocolateyInstall\bin\Regshot-x64-Unicode.exe --shimgen-usetargetworkingdirectory
to start Regshot. The WOX launcher is another example which creates an image directory in the current working directory. It would be great to have these applications in the$PATH
.┆Issue is synchronized with this Gitlab issue by Unito
The text was updated successfully, but these errors were encountered: