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

Support global config directory in ProjectDirs #82

Open
pheki opened this issue Jun 3, 2023 · 2 comments
Open

Support global config directory in ProjectDirs #82

pheki opened this issue Jun 3, 2023 · 2 comments

Comments

@pheki
Copy link

pheki commented Jun 3, 2023

Hi! It would be great if this library supported global config directories... My idea is:

Platform Value Example
Linux /etc/_project_path_ /etc/barapp
macOS /etc/_project_path_ or /usr/local/etc/_project_path_ (if installed via homebrew) /etc/barapp
Windows %ProgramData%\_project_path_\config C:\ProgramData\Bar App\config

MacOS implementation challenges:

  • Only the "bundle_id" is passed to project_dirs_from_path, which makes it hard to get the _project_path_.
  • How to detect if running through homebrew? Does homebrew patch repositories to change /etc/ to /usr/local/etc?

Another idea would be to use /Library/Application Support instead...

Kind of related to #78

@ModProg
Copy link

ModProg commented Jun 30, 2023

One thing to add here is that the actual xdg spec uses XDG_CONFIG_DIRS which is /etc/xdg by default.

@andrewbaxter
Copy link

These are all related: #87 #78 #58

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

No branches or pull requests

3 participants