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

Follow XDG Base Directory Specification #52

Open
Emiliaaah opened this issue Dec 18, 2024 · 1 comment
Open

Follow XDG Base Directory Specification #52

Emiliaaah opened this issue Dec 18, 2024 · 1 comment

Comments

@Emiliaaah
Copy link

Emiliaaah commented Dec 18, 2024

Problem

Currently most scripts use ~/.config or ~ as the base directory for their config location. I'm personally of the opinion that we should follow the freedesktop base dir specification, since this seems to be the widely agreed upon standard.

Affected scripts

The following list of scripts would be affected by this change:

  • pgpg
  • ikvmocr ($XDG_DATA_HOME specifically for this one)
  • nbdig
  • ipmikvm
  • zabdig
  • ipmiscrape
  • wvpn

Solution

Most of these already use ~/.config (zabdig being the only that doesn't)

  • Use $XDG_CONFIG_HOME as default config base directory
  • fallback to $HOME/.config if this environment variable isn't present
  • fallback to the old default of $HOME (where needed)
@wdoekes
Copy link
Member

wdoekes commented Dec 18, 2024

I approve ❤️

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

2 participants