aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorseth <getchoo@tuta.io>2023-07-14 14:19:44 -0400
committerGitHub <noreply@github.com>2023-07-14 14:19:44 -0400
commit094af0f78f76d9d20cdbc034074d39afcc8ed34c (patch)
tree1c29d9a3b912ba48a2eea0f8268599ac0c23c464 /launcher
parent3becd4386bd49c9c91a72647de10faa16c6d700a (diff)
parent3487e1cb640962ee95520309d5e4b00d6f629c3f (diff)
downloadPrismLauncher-094af0f78f76d9d20cdbc034074d39afcc8ed34c.tar.gz
PrismLauncher-094af0f78f76d9d20cdbc034074d39afcc8ed34c.tar.bz2
PrismLauncher-094af0f78f76d9d20cdbc034074d39afcc8ed34c.zip
Merge pull request #1336 from Ryex/packaging/fix-duplicate-share-directories
packaging: fix duplicate share directories (use only lowercase)
Diffstat (limited to 'launcher')
-rw-r--r--launcher/Application.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp
index 5aa9efc4..e6070006 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_NAME, logRulesFile);
+#else
logRulesPath = FS::PathCombine(m_rootPath, logRulesFile);
+#endif
qDebug() << "Testing" << logRulesPath << "...";
foundLoggingRules = QFile::exists(logRulesPath);
}
@@ -1563,7 +1567,7 @@ QString Application::getJarPath(QString jarFile)
{
QStringList potentialPaths = {
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD)
- FS::PathCombine(m_rootPath, "share/" + BuildConfig.LAUNCHER_APP_BINARY_NAME),
+ FS::PathCombine(m_rootPath, "share", BuildConfig.LAUNCHER_NAME),
#endif
FS::PathCombine(m_rootPath, "jars"),
FS::PathCombine(applicationDirPath(), "jars"),