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
Currently, the global config file is hardcoded at ~/.texterify.json, which is undesirable because it is yet another config file that clutters up the home directory.
This becomes even worse when using the global config names feature (~/.texterify.json, ~/.texterify.json.serverA, ~/.texterify.json.serverB, …).
Most modern systems have a dedicated ~/.config directory to put these kind of config files, and the XDG Base Directory Specification defines the XDG_CONFIG_HOME environment variable (defaults to $HOME/.config), which lets users customize the location their config files.
I propose switching from using the current, hardcoded location to using the XDG_CONFIG_HOME environment variable. The final location of the global config file would be something like $XDG_CONFIG_HOME/texterify/config.json, with global config names being located in the same directory and with the filenames config.json.{global_config_name}.
The legacy ~/.texterify.json and ~/.texterify.json.{global_config_name} locations may be used as fallbacks for backwards compatibility.
The text was updated successfully, but these errors were encountered:
Thanks for your feedback, I think it should not be a big deal to first search in the XDG_CONFIG_HOME folder and as a fallback check the home directory for the configuration files.
Currently, the global config file is hardcoded at
~/.texterify.json
, which is undesirable because it is yet another config file that clutters up the home directory.This becomes even worse when using the global config names feature (
~/.texterify.json
,~/.texterify.json.serverA
,~/.texterify.json.serverB
, …).Most modern systems have a dedicated
~/.config
directory to put these kind of config files, and the XDG Base Directory Specification defines theXDG_CONFIG_HOME
environment variable (defaults to$HOME/.config
), which lets users customize the location their config files.I propose switching from using the current, hardcoded location to using the
XDG_CONFIG_HOME
environment variable. The final location of the global config file would be something like$XDG_CONFIG_HOME/texterify/config.json
, with global config names being located in the same directory and with the filenamesconfig.json.{global_config_name}
.The legacy
~/.texterify.json
and~/.texterify.json.{global_config_name}
locations may be used as fallbacks for backwards compatibility.The text was updated successfully, but these errors were encountered: