Skip to content
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

Keylock command modifies submenu #60

Closed
Agivx3 opened this issue Mar 24, 2019 · 5 comments
Closed

Keylock command modifies submenu #60

Agivx3 opened this issue Mar 24, 2019 · 5 comments
Assignees
Labels

Comments

@Agivx3
Copy link

Agivx3 commented Mar 24, 2019

When using keylock command in registry the submenu which you defined before is modified to
suddenly show other entries

@clechasseur clechasseur self-assigned this Mar 25, 2019
@clechasseur
Copy link
Owner

Can you post a screenshot of the menu with and without KeyLock so that we can see the difference?

@Agivx3
Copy link
Author

Agivx3 commented Mar 25, 2019

Please review the attached screenshots: 1. Settings 2. Without keylock set 3. Keylock set
Screen1
Screen2
Screen3

@Agivx3 Agivx3 closed this as completed Mar 25, 2019
@Agivx3 Agivx3 reopened this Mar 25, 2019
@clechasseur
Copy link
Owner

Hmm. Thanks for the screenshot, I'll look at the code to see what's going on...

@Agivx3
Copy link
Author

Agivx3 commented Apr 4, 2019

Anything new about this ?

@clechasseur
Copy link
Owner

Ok, sorry it got me so long to get back to this, but I finally took some time to check the code. Basically, this is working as intended.

Path Copy Copy reads settings from registry keys under Software\clechasseur\PathCopyCopy. There's a global copy of this key in HKEY_LOCAL_MACHINE and one for each user in HKEY_CURRENT_USER. Settings in HKCU override those in HKLM.

The KeyLock registry value is a way to lock users out of overriding the global settings. When this is set, the user key is not checked at all - we only use the global key in HKLM.

Thus, what you see is a result of only using the global settings.

If you wanted to see proper settings when using KeyLock, you'd have to configure those settings and then copy them to the registry key in HKEY_LOCAL_MACHINE.

I hope this makes sense, ping here if you need more info. I'll leave this open for a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants