rbenv violates XDG basedir spec on linux

Created on 27 Oct 2015  路  4Comments  路  Source: rbenv/rbenv

according to http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

$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.

rbenv is one of the most popular tools on Linux - it would be awesome if you guys could comply with the spec.

feature

Most helpful comment

Since ~/.rbenv folder is mostly not configuration files (with exception of ~/.rbenv/version global version file), I would say this doesn't fall under what XDG_CONFIG_HOME is supposed to be used.

It seems like they're mostly data files? $XDG_DATA_HOME exists for that.

All 4 comments

How do you expect rbenv to comply with the XDG spec?

@sandys rbenv can be installed anywhere. Simply export RBENV_ROOT accordingly.

Though, personally, I don't think rbenv belongs under XDG_CONFIG_HOME. rbenv is an app, not a configuration file. I set RBENV_ROOT=/usr/local/var/rbenv

Agreed. Since ~/.rbenv folder is mostly not configuration files (with exception of ~/.rbenv/version global version file), I would say this doesn't fall under what XDG_CONFIG_HOME is supposed to be used. Closing until someone can argue otherwise.

Since ~/.rbenv folder is mostly not configuration files (with exception of ~/.rbenv/version global version file), I would say this doesn't fall under what XDG_CONFIG_HOME is supposed to be used.

It seems like they're mostly data files? $XDG_DATA_HOME exists for that.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

slayer picture slayer  路  4Comments

mhinz picture mhinz  路  3Comments

HuckyDucky picture HuckyDucky  路  4Comments

ponamute picture ponamute  路  4Comments

nguyenhuuphuc83 picture nguyenhuuphuc83  路  3Comments