Commit dd39faa6 authored by Andre Heinecke's avatar Andre Heinecke
Browse files

Look for paperkey executable in the install dir

This fixes paperkey lookup on Windows where it is not placed
in PATH but packaged together with Kleopatra and installed into
the same directory.
parent 781fc039
......@@ -229,6 +229,8 @@ bool Kleo::engineIsVersion(int major, int minor, int patch, Engine engine)
const QString& Kleo::paperKeyInstallPath()
static const QString pkPath = QStandardPaths::findExecutable("paperkey");
static const QString pkPath = QStandardPaths::findExecutable("paperkey", QStringList() << QCoreApplication::applicationDirPath()).isEmpty() ?
QStandardPaths::findExecutable("paperkey") :
QStandardPaths::findExecutable("paperkey", QStringList() << QCoreApplication::applicationDirPath());
return pkPath;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment