Skip to content

Conversation

ngtr6788
Copy link

Fixes #1396.

What I am trying to do in this PR is that we run the process as normal, and if the process throws an "elevated permission error" (belonging to Win32Exception), it tries again with elevated permissions, and if that doesn't work, we throw. My (hopeful) reasoning is that we don't want to elevate permissions right from the get-go and only elevate when we need to.

Again, I'm pretty new to the codebase and C# in general, so feedback is greatly appreciated!

@ngtr6788 ngtr6788 force-pushed the windows-settings-elevation branch from 331b9a7 to 6cc5fe8 Compare May 22, 2023 03:48
@taooceros
Copy link
Member

Thanks!

@taooceros taooceros merged commit 4144829 into Flow-Launcher:dev May 26, 2023
@jjw24 jjw24 added the bug Something isn't working label Jun 26, 2023
@jjw24 jjw24 added this to the 1.16.0 milestone Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: WindowsSettings fail silently when opening item that requires elevation

3 participants