26 lines
912 B
Plaintext
26 lines
912 B
Plaintext
From db7f7af2c76551444f0226cc698abf2306b51c23 Mon Sep 17 00:00:00 2001
|
|
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
|
Date: Tue, 7 Jan 2020 18:16:42 +1000
|
|
Subject: Set path for sycoca databases
|
|
|
|
|
|
diff --git a/src/sycoca/ksycoca.cpp b/src/sycoca/ksycoca.cpp
|
|
index a40a263..b0c1d33 100644
|
|
--- a/src/sycoca/ksycoca.cpp
|
|
+++ b/src/sycoca/ksycoca.cpp
|
|
@@ -690,7 +690,11 @@ QString KSycoca::absoluteFilePath(DatabaseType type)
|
|
suffix.replace(QLatin1Char(':'), QLatin1Char('_'));
|
|
#endif
|
|
const QString fileName = QLatin1String("ksycoca5") + suffix;
|
|
+#ifdef Q_OS_HAIKU
|
|
+ return QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation) + QLatin1String("/kdesycoca/") + fileName;
|
|
+#else
|
|
return QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation) + QLatin1Char('/') + fileName;
|
|
+#endif
|
|
} else {
|
|
return QFile::decodeName(ksycoca_env);
|
|
}
|
|
--
|
|
2.24.1
|
|
|