Run Avalonia App with Admin Permissions. #6607
Unanswered
ShrutiJaiswal1494
asked this question in
Q&A
Replies: 1 comment 5 replies
-
On Linux you need to find if any of privilege elevation tools are installed (kdesudo, gksudo) and them use them to ask the user to run your executable as root. You are not expected to run the app itself as root on macOS, you need to run a UI-less background app instead. That can be achieved in a similar way to Linux via applescript |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
My application needs Admin permissions to run. I need a code solution where the application can elevate to admin permissions on its own (any sample code will be excellent) so that the user does not have to give admin permissions every time. I do find some solutions for Windows but I am looking for something that will work on all the platforms. Any help is much appreciated. Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions