From 1becb6137ac2ce0dcd32ba8415780b41146bff56 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Thu, 11 Jun 2020 07:16:19 -0400 Subject: [PATCH] On case-sensitive OS, force use of lowercase config directory * Fixes #4835 --- src/core/Config.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/Config.cpp b/src/core/Config.cpp index 77684cee..75cb383b 100644 --- a/src/core/Config.cpp +++ b/src/core/Config.cpp @@ -441,11 +441,12 @@ Config::Config(QObject* parent) configPath = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation); localConfigPath = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation); #elif defined(Q_OS_MACOS) - configPath = QDir::fromNativeSeparators(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation)); + configPath = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation); localConfigPath = QStandardPaths::writableLocation(QStandardPaths::CacheLocation); #else - configPath = QDir::fromNativeSeparators(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation)); - localConfigPath = QStandardPaths::writableLocation(QStandardPaths::CacheLocation); + // On case-sensitive Operating Systems, force use of lowercase app directories + configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + "/keepassxc"; + localConfigPath = QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation) + "/keepassxc"; #endif configPath += "/keepassxc";