summaryrefslogtreecommitdiffstats
path: root/main.cpp
blob: d95916f294f88c640363b587ec411d2fe80f0cdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "mainwindow.h"
#include <QApplication>
#include <QProcess>
#include <QMessageBox>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    MainWindow w;

    QProcess *testProcess = new QProcess();
    if (testProcess->execute("pass") == 0) {
        w.show();
        return app.exec();
    } else {
        QMessageBox msgBox;
        msgBox.setText("Please install pass from http://www.passwordstore.org/");
        msgBox.exec();
    }
}