diff options
author | Anne Jan Brouwer <ajbrouwer@totalactivemedia.nl> | 2014-07-31 20:39:14 +0200 |
---|---|---|
committer | Anne Jan Brouwer <ajbrouwer@totalactivemedia.nl> | 2014-07-31 20:39:14 +0200 |
commit | 9689e81f9f135fff0257517b7b35a426d5587b16 (patch) | |
tree | bbfa203fd0792f93c9c0d6bf3deb3a8c2921c180 /main.cpp | |
parent | c7038a3e64c14dd2affb3110e7106bc1a78e9b87 (diff) |
configurable
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
@@ -1,7 +1,5 @@ #include "mainwindow.h" #include <QApplication> -#include <QProcess> -//#include <QMessageBox> int main(int argc, char *argv[]) { @@ -9,33 +7,6 @@ int main(int argc, char *argv[]) MainWindow w; - QProcess *testProcess = new QProcess(); - - testProcess->start("which pass"); - testProcess->waitForFinished(); - if (testProcess->exitCode() == 0) { - w.setPassExecutable(testProcess->readAllStandardOutput()); - } else { - w.setPassExecutable(""); - //QMessageBox msgBox; - //msgBox.setText("Please install pass from http://www.passwordstore.org/"); - //msgBox.exec(); - testProcess->start("which git"); - testProcess->waitForFinished(); - if (testProcess->exitCode() == 0) { - w.setGitExecutable(testProcess->readAllStandardOutput()); - } - testProcess->start("which gpg2"); - testProcess->waitForFinished(); - if (testProcess->exitCode() != 0) { - testProcess->start("which gpg"); - testProcess->waitForFinished(); - } - if (testProcess->exitCode() == 0) { - w.setGpgExecutable(testProcess->readAllStandardOutput()); - } - } - w.checkConfig(); w.show(); |