unusual config file location
Current config file location is:
$XDG_CONFIG_HOME/footrc (defaulting to ~/.config/footrc).
But seems most apps create subdir inside .config with app name (e.g. ~/config/foot/footrc).
Also in https://wiki.archlinux.org/index.php/XDG_Base_Directory for apps that doesn't support XDG spec they provide command to fix it that uses app name subdir, like:
export VIMINIT='source "$XDG_CONFIG_HOME/vim/vimrc"'
The spec https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html also mentions subdir.
Shouldn't foot use this way for config location? What if support both locations?
It does make sense, especially if we want to follow the spec more closely and also look for
I don't think we can, or should, remove support for the current location, but adding support for the new location should be easy enough.
I might make sense to add support for
XDG_CONFIG_DIRS at the same time.
It bothers me a bit that
footrc has the
rc suffix despite not being a run commands file like
.bashrc. Admittedly, many other programs like htop, isync, sxhkd, and kdenlive interpret
rc as "run control", too.
The new, additional location should be
.config/foot/foot.ini. Specifying the file format makes syntax highlighting possible.
Deleting a branch is permanent. It CANNOT be undone. Continue?