talonvoice / talon

Issue Tracker for the main Talon app
85 stars 0 forks source link

Feature Request: use `$XDG_CONFIG_HOME` as config directory #661

Open bentitmus opened 1 month ago

bentitmus commented 1 month ago

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:

This would work with #374, allow use of $XDG_CONFIG_HOME, and also not break anyone's existing set-up.