Fix presence of XDG_CONFIG_DIRS env var preventing kitty from starting up due to a silly typo

Fixes #421
This commit is contained in:
Kovid Goyal
2018-03-29 17:51:14 +05:30
parent 62db7639a8
commit 94d248d812

View File

@@ -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)