aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-07-08 15:44:09 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-07-08 15:44:09 -0700
commit4dc4c589ba21df9c5e04081e35788862b498f29d (patch)
treeb007d1f56cb604faccaf3bfbbb9f0460ee0a1e77 /launcher
parent67d473aab773e7f94c394ebdde05581dc8f805de (diff)
downloadPrismLauncher-4dc4c589ba21df9c5e04081e35788862b498f29d.tar.gz
PrismLauncher-4dc4c589ba21df9c5e04081e35788862b498f29d.tar.bz2
PrismLauncher-4dc4c589ba21df9c5e04081e35788862b498f29d.zip
packaging: fix duplicate share directories (use only lowercase)
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher')
-rw-r--r--launcher/Application.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp
index 7858d713..8c60f697 100644
--- a/launcher/Application.cpp
+++ b/launcher/Application.cpp
@@ -433,7 +433,11 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
}
// seach root path
if(!foundLoggingRules) {
+#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD)
+ logRulesPath = FS::PathCombine(m_rootPath, "share", BuildConfig.LAUNCHER_APP_BINARY_NAME, logRulesFile);
+#else
logRulesPath = FS::PathCombine(m_rootPath, logRulesFile);
+#endif
qDebug() << "Testing" << logRulesPath << "...";
foundLoggingRules = QFile::exists(logRulesPath);
}