On case-sensitive OS, force use of lowercase config directory

* Fixes #4835
This commit is contained in:
Jonathan White 2020-06-11 07:16:19 -04:00
parent 5f9bed6a52
commit 1becb6137a

View File

@ -441,11 +441,12 @@ Config::Config(QObject* parent)
configPath = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation); configPath = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
localConfigPath = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation); localConfigPath = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
#elif defined(Q_OS_MACOS) #elif defined(Q_OS_MACOS)
configPath = QDir::fromNativeSeparators(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation)); configPath = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
localConfigPath = QStandardPaths::writableLocation(QStandardPaths::CacheLocation); localConfigPath = QStandardPaths::writableLocation(QStandardPaths::CacheLocation);
#else #else
configPath = QDir::fromNativeSeparators(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation)); // On case-sensitive Operating Systems, force use of lowercase app directories
localConfigPath = QStandardPaths::writableLocation(QStandardPaths::CacheLocation); configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + "/keepassxc";
localConfigPath = QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation) + "/keepassxc";
#endif #endif
configPath += "/keepassxc"; configPath += "/keepassxc";