Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 18, 2020

Conversation

droidmonkey
Copy link
Member

Screenshots

Testing strategy

Type of change

  • ✅ Bug fix (non-breaking change that fixes an issue)

@droidmonkey droidmonkey added this to the v2.6.0 milestone Jun 11, 2020
@droidmonkey droidmonkey requested a review from phoerious June 11, 2020 11:16
@phoerious
Copy link
Member

I would like to restrict this to Linux. Windows and macOS should use camelCase/PascalCase.

@droidmonkey
Copy link
Member Author

Fine by me

@droidmonkey droidmonkey force-pushed the hotfix/config-dir branch 2 times, most recently from a642f13 to 30b00af Compare June 11, 2020 13:45
@yan12125
Copy link
Contributor

How about using QStandardPaths::GenericConfigLocation and appending '/keepassxc' instead of using QStandardPaths::AppConfigLocation [1] and bothering with the application initialization order?

[1]

configPath = QDir::fromNativeSeparators(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation));

@phoerious
Copy link
Member

That would have been my fix for this issue.

@droidmonkey
Copy link
Member Author

That is fine by me for Linux only, you said you wanted Windows and macOS to use CamelCase.

@PsikoBlock
Copy link

Don't forget that it's possible to use a case-sensitive filesystem on macOS as well. It would be better to disable this only on Windows.

@phoerious
Copy link
Member

Possible, but rare. All sorts of applications start breaking down it you make your system fs case-sensitive.

@droidmonkey
Copy link
Member Author

I fixed the implementation, should be ready for merge now

@droidmonkey droidmonkey changed the title Initialize Config early On case-sensitive OS, force use of lowercase config directory Jun 18, 2020
@yan12125
Copy link
Contributor

Thanks! I can confirm with this patch, application settings are preserved when upgrading KeePassXC from 2.5.4 to 2.6.

@droidmonkey droidmonkey merged commit 1becb61 into release/2.6.0 Jun 18, 2020
@droidmonkey droidmonkey deleted the hotfix/config-dir branch June 18, 2020 16:21
@phoerious phoerious added pr: bugfix Pull request that fixes a bug and removed bug labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: bugfix Pull request that fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants