Use XDG directories when defined #25

merged 2 commits into from Jul 16, 2011

2 participants


These patches make resty default to using the XDG basedir spec by default. Host files (e,g. localhost:5984) are stored in $XDG_CONFIG_HOME/resty whilst cookies and the host file are stored in $XDG_DATA_HOME/resty. If XDG_CONFIG_HOME is undefined, the previous default of $HOME/.resty is used.

namelessjon added some commits Jul 13, 2011
@namelessjon namelessjon Use XDG Base Directory instead of a .directory
Host files are read from $XDG_CONFIG_HOME/resty. Cookies and host file
are stored in $XDG_DATA_HOME/resty/c and $XDG_DATA_HOME/resty/host,
respectively.  One less .directory in $HOME.
@namelessjon namelessjon Fallback to ~/.resty without XDG dirs
Be a bit kinder to people without XDG goodness
@micha micha merged commit a7001b2 into micha:master Jul 16, 2011

Awesome, thanks! I had a little bit of a dilemma thinking about people who have an XDB environment but already are using a .resty config dir, but I think an update to the README should be sufficient. I think people can manually copy the directories if they really want to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment