Hey,

I am implementing a little application that needs to run a script that needs root privileges and I am wondering how to do that with QT in Meamo.

Right now I am using QProcess to run my script.

proc->start("sh", QStringList() << "script.sh" );

which is ok for running the script, but obviously it fails to execute and gives an error.

changing it to proc->start("sh", QStringList() << "sudo script.sh" ); doesn't seem to help either as it doesn't prompt a password for me. Not sure how do that, but is not functionality I am looking for either.

So any help would be appreciated.

Cheers,
Simo