You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, .togglrc is only searched after in XDG_CONFIG_HOME if that environment variable is set, but according to the spec a default of $HOME/.config should be used if that environment variable is unset.
I can respect not wanting to write the file to ~/.config if it's not in use on that system, but I would prefer the following:
if XDG_CONFIG_HOME is set and $XDG_CONFIG_HOME/.togglrc exists - read and write to this file
if XDG_CONFIG_HOME is not set and $HOME/.config/.togglrc exists - read and write to this file
if XDG_CONFIG_HOME is not set and $HOME/.config/.togglrc does not exist exists - read and write from ~/.togglrc
When determening how to create the config file for the first time I'd recommend:
if XDG_CONFIG_HOME is set - create $XDG_CONFIG_HOME/.togglrc
if XDG_CONFIG_HOME is not set and $HOME/.config exists - create $HOME/.config/.togglrc
if XDG_CONFIG_HOME is not set and $HOME/.config/ does not exist exists - create $HOME/.togglrc
The text was updated successfully, but these errors were encountered:
Right now,
.togglrc
is only searched after inXDG_CONFIG_HOME
if that environment variable is set, but according to the spec a default of$HOME/.config
should be used if that environment variable is unset.I can respect not wanting to write the file to
~/.config
if it's not in use on that system, but I would prefer the following:XDG_CONFIG_HOME
is set and$XDG_CONFIG_HOME/.togglrc
exists - read and write to this fileXDG_CONFIG_HOME
is not set and$HOME/.config/.togglrc
exists - read and write to this fileXDG_CONFIG_HOME
is not set and$HOME/.config/.togglrc
does not exist exists - read and write from~/.togglrc
When determening how to create the config file for the first time I'd recommend:
XDG_CONFIG_HOME
is set - create$XDG_CONFIG_HOME/.togglrc
XDG_CONFIG_HOME
is not set and$HOME/.config
exists - create$HOME/.config/.togglrc
XDG_CONFIG_HOME
is not set and$HOME/.config/
does not exist exists - create$HOME/.togglrc
The text was updated successfully, but these errors were encountered: