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

Safe mode working with Gramps 5.2 on Windows #1881

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hgohel
Copy link
Member

@hgohel hgohel commented Jan 27, 2025

Fixes #13300

Safe mode which was broken with Gramps 5.2.0-5.2.4 on Windows, has been fixed with commit.

Previously code was looking for user configuration in APPDATA, but with the move to XDG-based directory layout (bug 8025), this was no longer correct.

Per Nick Hall's review comment: Use the old directory structure if new structure is not present and the old location isn't empty (i.e. upgrade scenario from pre-5.2 Gramps), otherwise, use the new XDG-based directory layout (i.e. new install scenario of Gramps 5.2+).

TESTING
Test to verify that safe mode functions as described, i.e. starting from a user's customized environment, verify that existing family trees are available in safe mode but settings and configuration are not.

NOTE: This also fixes #13261 which documents another way in which this bug manifests. However, this is bug is closer to the root cause and easier to test.

For previous discussion of this change, see PR #1726

Fixes #0013300

Safe mode which was broken with Gramps 5.2.0-5.2.4 on Windows, has been fixed with commit.

Previously code was looking for user configuration in APPDATA, but with the move to XDG-based directory layout (bug 8025), this was no longer correct.

Per Nick Hall's review comment: Use the old directory structure if new structure is not present *and* the old location isn't empty (i.e. upgrade from pre-5.2 Gramps scenario).

Otherwise, use the new XDG-based directory layout (new install of Gramps 5.2+ scenario).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants