问题
My Qt app mounts ntfs shares to local directory.
I am using sudo appname but I want user to enter root password when application prompts.
How can I prompt for password and get root privileges for my Qt App ?
回答1:
This is something that's done by system software, not GUI toolkits. You can use PolicyKit
来源:https://stackoverflow.com/questions/5929220/get-root-privileges-to-my-qt-app