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

[FEATURE REQUEST] Ability to specify additional protocol_activation #114

Closed
imranismail opened this issue Mar 14, 2022 · 1 comment
Closed
Labels
fixed bug fixed

Comments

@imranismail
Copy link

💬 Description

Allow additional protocol_activation to be specified,

Use-case:

Allow app to be assigned as default handlers for http and https protocol.

Although unrelated, I have a few more questions with regards to my request. Let's say the default browser was overridden, how do I add a function to reassign the default browser.

I have this sample code:

void configure() {
  final hkcu = Registry.currentUser;
  final http = hkcu.createKey(
      r'Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice');
  final https = hkcu.createKey(
      r'Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice');
  // setting the executable path does not work
  // it wants the ProgId and I have no clue where to get this from
  final progId = RegistryValue(
      'ProgId', RegistryValueType.string, Platform.resolvedExecutable);

  http.createValue(progId);
  https.createValue(progId);
}

❓ Platform

Windows

@imranismail imranismail changed the title [FEATURE REQUEST] [FEATURE REQUEST] Ability to specify additional protocol_activation Mar 14, 2022
@YehudaKremer
Copy link
Owner

Hello @imranismail

You can now (version 3.4.0) add multiple protocols, see: changelog.

Thank you

@YehudaKremer YehudaKremer added the fixed bug fixed label Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed bug fixed
Projects
None yet
Development

No branches or pull requests

2 participants