The XDG Base Directory Specification is quite widely used on Linux/macOS and suggests that configuration files should be stored in a subdirectory of $XDG_CONFIG_HOME such as $XDG_CONFIG_HOME/talon. If $XDG_CONFIG_HOME isn't set then it should use ~/.config by default. This has the advantage that configuration files can all be put in a git repo to make it easier to share configuration between multiple computers.
To some extent this conflicts with #374 which would also 'fix' this problem for me (because I could just set $TALON_PATH/$TALON_HOME). My suggestion is that on Linux/macOS Talon uses:
$TALON_PATH/$TALON_HOME if it is set
if not it looks in $XDG_CONFIG_HOME/talon if $XDG_CONFIG_HOME is set
if not it looks in ~/.config/talon if it exists
if not it looks in ~/.talon
This would work with #374, allow use of $XDG_CONFIG_HOME, and also not break anyone's existing set-up.
The XDG Base Directory Specification is quite widely used on Linux/macOS and suggests that configuration files should be stored in a subdirectory of
$XDG_CONFIG_HOME
such as$XDG_CONFIG_HOME/talon
. If$XDG_CONFIG_HOME
isn't set then it should use~/.config
by default. This has the advantage that configuration files can all be put in a git repo to make it easier to share configuration between multiple computers.To some extent this conflicts with #374 which would also 'fix' this problem for me (because I could just set
$TALON_PATH
/$TALON_HOME
). My suggestion is that on Linux/macOS Talon uses:$TALON_PATH
/$TALON_HOME
if it is set$XDG_CONFIG_HOME/talon
if$XDG_CONFIG_HOME
is set~/.config/talon
if it exists~/.talon
This would work with #374, allow use of
$XDG_CONFIG_HOME
, and also not break anyone's existing set-up.