-
-
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
Execute cmd but don't execute autostart programs #3815
Closed
greg-hutchinson
wants to merge
9
commits into
ScoopInstaller:master
from
greg-hutchinson:path-not-specified
Closed
Execute cmd but don't execute autostart programs #3815
greg-hutchinson
wants to merge
9
commits into
ScoopInstaller:master
from
greg-hutchinson:path-not-specified
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Prevent issues if user has `pull.rebase` set `interactive` in global gitconfig
Co-Authored-By: Jakub Čábera <cabera.jakub@gmail.com>
- Closes #3770 - New available command: `scoop config 'default-architecture' '32bit|64bit'`
I think this would solve bug #3629 |
Just curious. Was there something else I should have done? This has been in pending review for some time now. |
Please rebase it to the develop branch. |
Hi Richard,
I have updated and applied the change to the most recent develop branch and
submitted another pull request. Sorry, if this is not the process to follow
and let me know if there is anything else you require from me.
Thanks,
... Greg ...
…On Tue, 19 May 2020 at 11:46, Richard Kuhnt ***@***.***> wrote:
Please rebase it to the develop branch.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3815 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADDG3JUAT6O27RHBRCWRHN3RSLAXNANCNFSM4KCQXMAA>
.
--
|
Closed via #3993 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The way the current code works is that it has side effects when trying to execute a git command.
(This comes from the file git.ps1 in the lib directory).
(i.e current code
& "$env:COMSPEC" /c $cmd
)
Without the /d parameter, it also executes code that is in the windows autostart sections of the registry.
HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun
and/or
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun
by adding the /d switch
& "$env:COMSPEC" /d /c $cmd
no extra autorun programs will be executed.
Normally, this does not have any adverse effects (it is just possibly slower), however, if there is an error in the autostart entries, it ends up returning errors to scoop that get interpreted incorrectly. In my case, I also had invalid entries left in the autostart and was receiving the error message -
"The system cannot find the path specified". And scoop was failing.
I have seen this reported on several bugs as well.
Of course, there are several fixes to this - remove the entries from the registry, but I believe by adding the /d switch to the line below, will save scoop reporting errors that are non-related to scoop and it will run potentially faster when the autostart programs are time-consuming.