Skip to content

Commit

Permalink
On case-sensitive OS, force use of lowercase config directory
Browse files Browse the repository at this point in the history
* Fixes #4835
  • Loading branch information
droidmonkey committed Jun 17, 2020
1 parent c68f487 commit b51f2a9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/core/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit b51f2a9

Please sign in to comment.