aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorCarl Smedstad <carl.smedstad@protonmail.com>2021-04-05 16:03:59 +0200
committerHisham Muhammad <hisham@gobolinux.org>2021-04-06 17:24:57 -0300
commit2360071b5a723b02ec80251b569dd3c5e2f9feaa (patch)
treef6add433cd036650ba878ecab8164e485afdc0a8 /spec
parentcc0b526646600a94d09e48c4a2f5b3da092b831e (diff)
downloadluarocks-2360071b5a723b02ec80251b569dd3c5e2f9feaa.tar.gz
luarocks-2360071b5a723b02ec80251b569dd3c5e2f9feaa.tar.bz2
luarocks-2360071b5a723b02ec80251b569dd3c5e2f9feaa.zip
Support XDG_CONFIG_HOME
The loading of the config file has been changed to support the XDG Base Directory specification. More info here: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html If in a UNIX environment, LuaRocks will try loading a config file in XDG_CONFIG_HOME. If this fails, try loading one in the old location ~/.luarocks. This method clashed a bit with the old code that separated the setting of confdirs and the loading of the config files. As we now change cfg.homeconfdir depending on where we find the config file I found it necessary to remove the function set_confdirs() and move some pieces into the config loading logic.
Diffstat (limited to 'spec')
0 files changed, 0 insertions, 0 deletions