Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Commit

Permalink
Do not background the initial sudo non-interactive run.
Browse files Browse the repository at this point in the history
Some shell-script-based tools will not finish in this mode.
  • Loading branch information
beanpole135 committed Mar 15, 2020
1 parent 83896cb commit d7304c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-qt5/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ int main(int argc, char *argv[])
}
//Test that the user needs to provide a password first
QStringList args; for(int i=1; i<argc; i++){ args << argv[i]; }
int ret = QProcess::execute("sudo", QStringList() << "-n" << "-b" << "-S" << args);
int ret = QProcess::execute("sudo", QStringList() << "-n" << "-S" << args);
if(ret==0){ return 0; } //all finished. No password needed

QTranslator translator;
Expand Down

0 comments on commit d7304c1

Please sign in to comment.