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

Scheme registration: Avoid admin privileges #171

Open
iLLiCiTiT opened this issue Sep 25, 2024 · 0 comments
Open

Scheme registration: Avoid admin privileges #171

iLLiCiTiT opened this issue Sep 25, 2024 · 0 comments
Assignees
Labels
type: enhancement Improvement of existing functionality or minor addition

Comments

@iLLiCiTiT
Copy link
Member

iLLiCiTiT commented Sep 25, 2024

Please describe the feature you have in mind and explain what the current shortcomings are?

We require admin privileges to register ayon-launcher scheme, but it looks like it might not be required.

How would you imagine the implementation of the feature?

This needs validation but it looks like we create scheme handler in HKEY_CURRENT_USER\SOFTWARE\Classes\ayon-launcher. And it should also override the HKEY_CLASSES_ROOT\ayon-launcher handler.

Steps would be:

  • Validate if ayon-launcher is set in HKEY_CURRENT_USER\SOFTWARE\Classes\ayon-launcher.
  • If is not there then check if is set in HKEY_CLASSES_ROOT\ayon-launcher.
  • If HKEY_CLASSES_ROOT\ayon-launcher is there and is correct then do nothing -> everything is set up.
  • Otherwise set HKEY_CURRENT_USER\SOFTWARE\Classes\ayon-launcher.

It may also be based on install location (related to #169). If shim is installed to Program files then it must be added to HKEY_CURRENT_USER\SOFTWARE\Classes\ayon-launcher otherwise use only local override.

@iLLiCiTiT iLLiCiTiT added the type: enhancement Improvement of existing functionality or minor addition label Sep 25, 2024
@iLLiCiTiT iLLiCiTiT self-assigned this Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Improvement of existing functionality or minor addition
Projects
None yet
Development

No branches or pull requests

1 participant