Browse Source

Merge pull request #578 from ionite34/registry-perms-fix

Use explicit writeable flag for UriHandler registry access
pull/629/head
Ionite 8 months ago committed by GitHub
parent
commit
d37a2df700
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      StabilityMatrix.Avalonia/Helpers/UriHandler.cs

2
StabilityMatrix.Avalonia/Helpers/UriHandler.cs

@ -83,7 +83,7 @@ public class UriHandler
[SupportedOSPlatform("windows")]
private void RegisterUriSchemeWin()
{
using var key = Registry.CurrentUser.CreateSubKey(@$"SOFTWARE\Classes\{Scheme}");
using var key = Registry.CurrentUser.CreateSubKey(@$"SOFTWARE\Classes\{Scheme}", true);
key.SetValue("", "URL:" + Description);
key.SetValue(null, Description);

Loading…
Cancel
Save