Don't store state data in $XDG_CONFIG_HOME

rpdelaney
rpdelaney
Community Member

I find that state data is stored in $XDG_CONFIG_HOME/.op/config.

Users who do not expect state data to be stored here may accidentally back it up and synchronize it across systems improperly. Configuration data are fine, but prefer storing state data somewhere in $XDG_DATA_HOME to conform to the freedesktop.org / XDG standard.

Reference: https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

$XDG_CONFIG_HOME defines the base directory relative to which user specific                                                                                                                                          
configuration files should be stored. If $XDG_CONFIG_HOME is either not set or                                                                                                                                       
empty, a default equal to $HOME/.config should be used.
$XDG_DATA_HOME defines the base directory relative to which user specific data                                                                                                                                       
files should be stored. If $XDG_DATA_HOME is either not set or empty, a default                                                                                                                                      
equal to $HOME/.local/share should be used.

1Password Version: 0.5.5
Extension Version: Not Provided
OS Version: macOS-10.14.4
Sync Type: Not Provided

Comments

  • Ben
    Ben
    edited April 2019

    Thanks @rpdelaney. I'll file an issue on this for development to take a look at.

    Ben

    ref: b5/op#547

This discussion has been closed.