How can I parse a parameter like --message "text" to /usr/bin/gksudo using QProcess to show my individualized text?
Just with /usr/bin/gksudo and calling my script.sh it works fine.
Here the minimal example:
QString cmd = QString("/usr/bin/gksudo");
QStringList param = ( QStringList << "--message my Text" << "path/to/script.sh")
QProcess.start( cmd, param );
Even if i try to add the parameter to the cmd i fail. And no password prompt is shown.
QString cmd = QString("/usr/bin/gksudo --message MyText");