Add support for the $XDG_CONFIG_HOME variable and a fallback to ~/.config/etr for the configuration folder. If ~/.etr exists, it is used instead, allowing for backwards compatibility with existing configurations.
A patch which implements this exact change (in 9 lines) has been attached.
Thanks. I just modified it to write to subdirectory "etr" under XDG specified directory. Namespace-wise it's better not to write files like "options.txt" directly to the main directory used by all softwares.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Add support for the $XDG_CONFIG_HOME variable and a fallback to ~/.config/etr for the configuration folder. If ~/.etr exists, it is used instead, allowing for backwards compatibility with existing configurations.
A patch which implements this exact change (in 9 lines) has been attached.
Note, this only affects UNIX (non-windows) systems.
Thanks. I just modified it to write to subdirectory "etr" under XDG specified directory. Namespace-wise it's better not to write files like "options.txt" directly to the main directory used by all softwares.