diff options
author | Anne Jan Brouwer <annejan@noprotocol.com> | 2015-05-05 03:44:16 +0200 |
---|---|---|
committer | Anne Jan Brouwer <annejan@noprotocol.com> | 2015-05-05 03:44:16 +0200 |
commit | 6918fd5f89495690fc5ca619fe29e8d9149c5d22 (patch) | |
tree | 972e9e0c51b2b0c20c847733e2fd65f5b7089e39 | |
parent | 71b80f40f40bc03dbb34fdcd192d05d172c70066 (diff) |
better mac gpg handling and defaulting to gpg2
-rw-r--r-- | mainwindow.cpp | 2 | ||||
-rw-r--r-- | util.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index bd3ad081..b1536975 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -155,7 +155,7 @@ void MainWindow::checkConfig() { gpgExecutable = settings.value("gpgExecutable").toString(); if (gpgExecutable == "") { - gpgExecutable = Util::findBinaryInPath("gpg"); + gpgExecutable = Util::findBinaryInPath("gpg2"); } gpgHome = settings.value("gpgHome").toString(); @@ -12,6 +12,9 @@ void Util::initialiseEnvironment() { if (!_envInitialised) { _env = QProcessEnvironment::systemEnvironment(); +#ifdef __APPLE__ + _env.insert("PATH", _env.value("PATH") + ":/usr/local/MacGPG2/bin"); +#endif _envInitialised = true; } } |