[Qt-interest] help needed: How I obtain root user access in my QT application? (Ubuntu Platform)

Donal O'Connor donaloconnor at gmail.com
Thu May 27 11:26:51 CEST 2010


You could use "gksudo yourapp" as the command. Then it will prompt user to
enter password.

On Thu, May 27, 2010 at 10:22 AM, shafiul azam <ishafiul at gmail.com> wrote:

> In my QT application, I need to execute some commands which need root
> access. When I execute them with QProcess, it says access denied.
>
> How to solve the problem? i.e How i can execute commands like "sudo
> nautilus" ?
>
> Many GUI applications in Ubuntu/linux prompt for root access (prompts for
> user password) when they starts-up. If I need to implement it automatically
> in my application, (i.e when a user double-clicks on my application icon it
> will prompt for root user access) what to do?
>
> Please help with solution and ideas :(
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100527/3d1104df/attachment.html 


More information about the Qt-interest-old mailing list