Commit f4ddcdae authored by Nate Graham's avatar Nate Graham
Browse files

[kcms/baloo] Fix path to database read from the environment variable

BALOO_DB_PATH holds the location of the folder where the index will
live, not the full path to the index. So if that environment variable is
set, we need to append the name of the index file to it to yield the
full path to the index file.
parent 26970188
......@@ -47,6 +47,8 @@ static QString balooDatabaseLocation()
QString location = QString::fromLocal8Bit(qgetenv("BALOO_DB_PATH"));
if (location.isEmpty()) {
location = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1String("/baloo/index");
} else {
location.append(QLatin1String("/index"));
}
return location;
}
......
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