Skip to content

Commit

Permalink
Merge pull request #440 from jnsnow/xdg_config_fallback
Browse files Browse the repository at this point in the history
Use correct XDG default for XDG_CONFIG_HOME
  • Loading branch information
jaraco committed Aug 2, 2020
2 parents 06d5982 + 0bd73db commit 81e3df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyring/util/platform_.py
Expand Up @@ -56,7 +56,7 @@ def _config_root_Linux():
location.
"""
_check_old_config_root()
fallback = os.path.expanduser('~/.local/share')
fallback = os.path.expanduser('~/.config')
key = 'XDG_CONFIG_HOME'
root = os.environ.get(key, None) or fallback
return os.path.join(root, 'python_keyring')
Expand Down

0 comments on commit 81e3df1

Please sign in to comment.