Menu

XDG_CONFIG_HOME compliance

2021-03-29
2021-03-30
  • Adrià Rubio Coll

    I would like to customise eaglemode without root privileges when it's installed system wide, but I have set $HOME as read-only as per this procedure for defending my $HOME from all the roge dotfiles and dotdirs. Therefore, I would really appreciate if you let me use the .config directory (or any $XDG_CONFIG_HOME for that matter) to save my configuration.

     
  • Oliver Hamann

    Oliver Hamann - 2021-03-30

    You can change the Eagle Mode configuration directory by setting the EM_USER_CONFIG_DIR environment variable. For example in your .bashrc or in eaglemode.sh:

    export EM_USER_CONFIG_DIR=$HOME/.config/eaglemode

    I understand that I should add support for XDG_CONFIG_HOME one day. But it's troublesome to keep compatibility with old configurations (detect and copy it silently, or ask user...).

     

Log in to post a comment.