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

libtizplatform: use $XDG_CONFIG_HOME and $XDG_CONFIG_DIRS to locate tizonia.conf #428

Closed
juanrubio opened this issue Dec 22, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@juanrubio
Copy link
Collaborator

commented Dec 22, 2017

From https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

There is a single base directory relative to which user-specific configuration files should be written. 
This directory is defined by the environment variable $XDG_CONFIG_HOME.

There is a set of preference ordered base directories relative to which configuration files should be searched. 
This set of directories is defined by the environment variable $XDG_CONFIG_DIRS.

$XDG_CONFIG_HOME defines the base directory relative to which user specific configuration files should be stored. 
If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.

$XDG_CONFIG_DIRS defines the preference-ordered set of base directories to search for configuration files in addition to the $XDG_CONFIG_HOME base directory. 
The directories in $XDG_CONFIG_DIRS should be seperated with a colon ':'.

If $XDG_CONFIG_DIRS is either not set or empty, a value equal to /etc/xdg should be used.

@juanrubio juanrubio added this to the v0.11.0 milestone Dec 22, 2017

@juanrubio juanrubio self-assigned this Dec 22, 2017

@juanrubio juanrubio closed this in 45da648 Dec 22, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.