Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Use XDG directories when defined #25

merged 2 commits into from Jul 16, 2011


None yet
2 participants

namelessjon commented Jul 15, 2011

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

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.
Fallback to ~/.resty without XDG dirs
Be a bit kinder to people without XDG goodness

micha added a commit that referenced this pull request Jul 16, 2011

Merge pull request #25 from namelessjon/master
Use XDG directories when defined

@micha micha merged commit a7001b2 into micha:master Jul 16, 2011


micha commented 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