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

Add XDG Base Directory Specification support #848

Open
dudynets opened this issue Mar 26, 2024 · 1 comment
Open

Add XDG Base Directory Specification support #848

dudynets opened this issue Mar 26, 2024 · 1 comment

Comments

@dudynets
Copy link

Currently, config files are stored in $HOME/.ledfx directory on MacOS and Linux.

LedFx/ledfx/config.py

Lines 162 to 173 in 021e953

def get_default_config_directory() -> str:
"""
Get the default configuration directory.
Returns:
str: The default configuration directory path.
"""
base_dir = (
os.getenv("APPDATA") if os.name == "nt" else os.path.expanduser("~")
)
return os.path.join(base_dir, CONFIG_DIRECTORY)

To enhance organization and adhere to established standards, it's recommended to relocate the config folder to $XDG_CONFIG_HOME/ledfx.

@shauneccles
Copy link
Member

Hi,

I'm not familiar with XDG_CONFIG_HOME - I'm having a lil trouble finding a solid reference page for its use/implementation.

Any hints?

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