mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-28 15:27:18 -05:00
On case-sensitive OS, force use of lowercase config directory
* Fixes #4835
This commit is contained in:
parent
5f9bed6a52
commit
1becb6137a
@ -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";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user