get root privileges to my Qt App

独自空忆成欢 提交于 2019-12-23 12:44:57

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!