Menu

Support $XDG_CONFIG_HOME for options.txt file

Aaron Dill
2023-06-06
2023-06-13
  • Aaron Dill

    Aaron Dill - 2023-06-06

    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.

     
  • Aaron Dill

    Aaron Dill - 2023-06-06

    Note, this only affects UNIX (non-windows) systems.

     
  • Marko Lindqvist

    Marko Lindqvist - 2023-06-13

    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.

     

Log in to post a comment.