diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2018-01-28 12:21:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-28 12:21:01 +0000 |
commit | 6a62b0e3659d377cd9854223fc5f5a1ece666eb5 (patch) | |
tree | 74a57917885c45604f90f827da827b848162138b /alot/ui.py | |
parent | d94d786b296d0f746e0442d9c3483673dec2e38b (diff) | |
parent | a60e8c91352585d9d5d74228f9b1a95bf24fd1ca (diff) |
Merge pull request #1179 from three-comrades/themes_dir
Bug fixes regarding XDG_* variable expansion + adds general env expansion
Diffstat (limited to 'alot/ui.py')
-rw-r--r-- | alot/ui.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -18,6 +18,7 @@ from .commands import CommandCanceled from .commands import CommandParseError from .helper import split_commandline from .helper import string_decode +from .helper import get_xdg_env from .widgets.globals import CompleteEdit from .widgets.globals import ChoiceWidget @@ -83,7 +84,7 @@ class UI(object): # load histories self._cache = os.path.join( - os.environ.get('XDG_CACHE_HOME', os.path.expanduser('~/.cache')), + get_xdg_env('XDG_CACHE_HOME', os.path.expanduser('~/.cache')), 'alot', 'history') self._cmd_hist_file = os.path.join(self._cache, 'commands') self._sender_hist_file = os.path.join(self._cache, 'senders') |