unusual config file location #110

Closed
opened 1 year ago by kazufukurou · 3 comments

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?

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?
dnkl commented 1 year ago
Owner

It does make sense, especially if we want to follow the spec more closely and also look for footrc in XDG_CONFIG_DIRS.

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 does make sense, especially if we want to follow the spec more closely and also look for `footrc` in `XDG_CONFIG_DIRS`. 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.
dnkl added the
easy
label 1 year ago

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.

It bothers me a bit that `footrc` has the `rc` suffix despite not being a [run commands][1] 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. [1]: https://en.wikipedia.org/wiki/Run_commands
dnkl commented 1 year ago
Owner

@Ordoviz agreed, the filename should be changed at the same time.

@Ordoviz agreed, the filename should be changed at the same time.
dnkl added the
enhancement
label 1 year ago
dnkl closed this issue 1 year ago
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.