Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 6669383d authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Look for xapian-delve executable, fallback to delve

parent 35204de0
......@@ -35,7 +35,12 @@ AkonadiSearchDebugSearchJob::~AkonadiSearchDebugSearchJob()
void AkonadiSearchDebugSearchJob::start()
{
const QString delvePath = QStandardPaths::findExecutable(QStringLiteral("delve"));
// "delve" is also a name of Go debugger, some distros prefer xapian-delve
// for that reason, so try that first and fallback to "delve"
QString delvePath = QStandardPaths::findExecutable(QStringLiteral("xapian-delve"));
if (delvePath.isEmpty()) {
delvePath = QStandardPaths::findExecutable(QStringLiteral("delve"));
}
if (delvePath.isEmpty()) {
//Don't translate it. Just debug
Q_EMIT error(QStringLiteral("\"delve\" not installed on computer."));
......
Markdown is supported
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