--- a/kgpg.kcfg +++ b/kgpg.kcfg @@ -61,7 +61,7 @@ - gpg + gpg2 --- a/kgpgfirstassistant.cpp +++ b/kgpgfirstassistant.cpp @@ -114,7 +114,7 @@ KGpgFirstAssistant::KGpgFirstAssistant(Q if (gpgBin.isEmpty()) gpgBin = QStandardPaths::findExecutable(QLatin1String("gpg")); if (gpgBin.isEmpty()) - gpgBin = QLatin1String("gpg"); + gpgBin = QLatin1String("gpg2"); binURL->setUrl(QUrl::fromLocalFile(gpgBin)); connect(binURL, &KUrlRequester::textChanged, this, &KGpgFirstAssistant::slotBinaryChanged); --- a/kgpgexternalactions.cpp +++ b/kgpgexternalactions.cpp @@ -452,7 +452,7 @@ void KGpgExternalActions::firstRun() QProcess *createConfigProc = new QProcess(this); QStringList args; args << QLatin1String( "--no-tty" ) << QLatin1String( "--list-secret-keys" ); - createConfigProc->start(QLatin1String( "gpg" ), args); // start GnuPG so that it will create a config file + createConfigProc->start(QLatin1String( "gpg2" ), args); // start GnuPG so that it will create a config file createConfigProc->waitForFinished(); startAssistant(); }