Exit non-zero when aborting with --raw. (#424)

This fixes #302. Note that I also added a non-zero exit status when DBus
fails to connect.
This commit is contained in:
James LaChance
2018-12-28 10:39:04 -05:00
committed by Dharkael
parent 652689627f
commit 472a275bb9
2 changed files with 5 additions and 5 deletions

View File

@@ -235,7 +235,7 @@ int main(int argc, char *argv[]) {
&QCoreApplication::quit);
t.start();
// wait
app.exec();
return app.exec();
}
}
else if (parser.isSet(fullArgument)) { // FULL
@@ -282,7 +282,7 @@ int main(int argc, char *argv[]) {
&QCoreApplication::quit);
t.start();
// wait
app.exec();
return app.exec();
}
}
else if (parser.isSet(screenArgument)) { // SCREEN
@@ -332,7 +332,7 @@ int main(int argc, char *argv[]) {
&QCoreApplication::quit);
t.start();
// wait
app.exec();
return app.exec();
}
}
else if (parser.isSet(configArgument)) { // CONFIG