summaryrefslogtreecommitdiff
path: root/alot/ui.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2018-01-28 12:21:01 +0000
committerGitHub <noreply@github.com>2018-01-28 12:21:01 +0000
commit6a62b0e3659d377cd9854223fc5f5a1ece666eb5 (patch)
tree74a57917885c45604f90f827da827b848162138b /alot/ui.py
parentd94d786b296d0f746e0442d9c3483673dec2e38b (diff)
parenta60e8c91352585d9d5d74228f9b1a95bf24fd1ca (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.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/alot/ui.py b/alot/ui.py
index c97f2fc1..c42df091 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -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')