I need to run gphoto2from a Qt program. I'm doing it:
QString gphotoProgram = "/usr/bin/gphoto2";
QStringList gphotoArguments;
gphotoArguments << "--capture-image";
QProcess *gphotoProcess = new QProcess(this);
gphotoProcess->start(gphotoProgram, gphotoArguments);
but it never enters the state Runningthis way, since it gphoto2usually requires administrator privileges to run on the command line.
How can I run this QProcesswith proper execute permissions gphoto2?
Edit: I definitely want the user to not enter a password, which means that gksudo, kdesudo or any other graphical solution is not a valid option for me.
source
share