开发者

get root privileges to my Qt App

开发者 https://www.devze.com 2023-03-03 14:53 出处:网络
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.

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 fo开发者_开发百科r my Qt App ?


This is something that's done by system software, not GUI toolkits. You can use PolicyKit

0

精彩评论

暂无评论...
验证码 换一张
取 消