summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2014-07-31 20:39:14 +0200
committerAnne Jan Brouwer <ajbrouwer@totalactivemedia.nl>2014-07-31 20:39:14 +0200
commite4479e2f708f59f8d0c7a7c59d5de8ab37b348d7 (patch)
treebbfa203fd0792f93c9c0d6bf3deb3a8c2921c180 /main.cpp
parent7b7f652ac1f20e3b8bfd1ca3b0cd31ad741f5400 (diff)
configurable
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/main.cpp b/main.cpp
index 7021b4fd..68e49244 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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();