From 94d248d81205b1004ab78acfb1da71426665622d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 29 Mar 2018 17:51:14 +0530 Subject: [PATCH] Fix presence of XDG_CONFIG_DIRS env var preventing kitty from starting up due to a silly typo Fixes #421 --- kitty/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/constants.py b/kitty/constants.py index b095bc966..b7c292e42 100644 --- a/kitty/constants.py +++ b/kitty/constants.py @@ -35,7 +35,7 @@ def _get_config_dir(): locations.append(os.path.expanduser('~/Library/Preferences')) if 'XDG_CONFIG_DIRS' in os.environ: for loc in os.environ['XDG_CONFIG_DIRS'].split(os.pathsep): - locations.append(os.path.abspath(os.path.expanduser(os.environ['XDG_CONFIG_HOME']))) + locations.append(os.path.abspath(os.path.expanduser(loc))) for loc in locations: if loc: q = os.path.join(loc, appname)