[SOLVED] QProcess sudo ls doesn't work.
Solved
General and Desktop
-
I added this line to sudoers but it doesn't work.
@metheuser ALL=(ALL) NOPASSWD: /usr/bin/ls@
then I call this on button press event:
@process = new QProcess(this);
process->start( "/usr/bin/sudo /usr/bin/ls");
process->waitForFinished( -1);@it will always fail.
The only working sudo command is sudo -V
However, on the konsole "sudo ls" or "/usr/bin/sudo" works fine.
Please Help.