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

Change Unix homepath to support XDG_DATA_HOME #703

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zturtleman
Copy link

Existing installs continue to use ~/.q3a but new installs use ~/.local/share/q3a.

~/.local/share/q3a is always used if it exists. Otherwise it will use ~/.q3a if it exists or create ~/.local/share/q3a. This prevents switching to ~/.q3a if another client creates it later.

This supports +set com_homepath ".foo" to override paths to ~/.foo and ~/.local/share/foo.

The code diff is hard to read;

  • This moves XDG_DATA_HOME handling from Flatpak-only to below the original HOME handling.
  • Renames homePath variable to origPath in the original HOME handling.
  • Adds access() checks to decide if original "dot" path should be used instead of XDG_DATA_HOME.

This is marked as a draft because of questions posted in #702 and we shouldn't really change the filesystem layout multiple times.

Existing installs continue to use ~/.q3a but new installs use
~/.local/share/q3a.

~/.local/share/q3a is always used if it exists. Otherwise it will use
~/.q3a if it exists or create ~/.local/share/q3a. This prevents
switching to ~/.q3a if another client creates it later.

This supports '+set com_homepath ".foo"' to override paths to ~/.foo and
~/.local/share/foo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant