-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
Feature Request: Clear All Config Settings #389
Comments
https://github.com/gerardog/gsudo?tab=readme-ov-file#configuration
My understanding is that if you do not use a particular key value then you can reset the entire config both, per user as well as globally for all users. @gerardog is this correct? If so, it could perhaps be explained instead of just having the code there. |
You're absolutely correct John, as I mentioned, you can I meant to clear ALL config settings, for both User and Global back to default. Everything. So as I mentioned, one way is to simply delete both the HKLM and HKCU keys, and that works for sure. I guess I was merely suggesting an "official" way rather than by editing registry. ^_^ Sometimes, it helps to know that (or quickly set) a machine is confirmed to be in a known state - gsudo's factory defaults. |
Sorry, what I meant is if you But I tried it and that does not do what I expected it to. Hence your RFF lol. (I probably should have tried it first before posting - sorry!) However, I think the above (with a warning before execution) would be good though. Or else a(nother) special argument such as |
Ha ha! Yeah, it's an invalid parameter...
Either way works for me.. no preference... Again, to note, one can simply reg delete the keys and that works, so the functionality is there.. so this is not like a high priority feature... Just suggesting that there should be a more "official" method.. and maybe also future proofing in case those keys are needed for something else in the future. ^_^ |
Thanks for the suggestion, I'm including this in the next release 😃 |
Description
Is there a simple way to just reset ALL of gsudo's config settings back to the gsudo default (known)?
I know we can just delete the registry keys
HKLM\SOFTWARE\gsudo
andHKCU\SOFTWARE\gsudo
... But a built-in "official" option so we don't need to run reg.exe ?Proposed technical details
Clear Individual Config Setting (current method):
gsudo config CacheMode --reset
Clear all Settings:
gsudo config --reset-all
The text was updated successfully, but these errors were encountered: