Unsolved How to run a script as administrator in Qt
-
How to run a script as administrator in Qt
-
There is no built-in API for this, you need to use native method for each platform.
-
@sierdzio , Can you give one example?
-
Some hints on how to achieve this on Windows https://forum.qt.io/topic/64378/call-another-application-with-administrator-priviliges/14
On Linux you should probably take a look at GtkSudo or KdeSudo https://askubuntu.com/questions/425620/sudo-gksudo-kdesudo-and-their-differences
macOS - I have no idea.
-
@Vinod-Kuntoji for macOS, I never did it yet, So I can't help,
But I may point you to some informative websides
And if you set yourself up as root user, you shouldn't need extra privileges.
https://support.apple.com/en-us/HT204012
But that's an rather extrem solution....