diff options
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index f70c066e..56ce49bc 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -244,6 +244,10 @@ bool MainWindow::checkConfig() { passStore = Util::findPasswordStore(); settings.setValue("passStore", passStore); } + // ensure directory exists if never used pass or misconfigured. + // otherwise process->setWorkingDirectory(passStore); will fail on execution. + QDir().mkdir(passStore); + passStore = Util::normalizeFolderPath(passStore); passExecutable = settings.value("passExecutable").toString(); |