Comment 7 for bug 1864631

Revision history for this message
Matthew Miller (matt-dwg05) wrote :

There is no symlink called gpg2 on a stock system until the package gnupg2 is installed. When I ran the change in my previous post, I had gnupg2 installed, this is not the case on a fresh install of lubuntu. However, qtpasssettings.cpp could check for the binary gpg if it cannot find gpg2 and qtpass will start successfully without gnupg2 installed (around line 288 in qtpasssettings.cpp:

  QString gpgExecutable =
      QtPassSettings::getGpgExecutable(Util::findBinaryInPath("gpg2"));
  if(!QFile(gpgExecutable).exists()){
    gpgExecutable =
      QtPassSettings::getGpgExecutable(Util::findBinaryInPath("gpg"));
  }

This mimics a similar check in configdialog.cpp.