From ba9adc127e4680e7fa093ca3c376e914fd96951b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 8 Aug 2021 10:49:41 +0530 Subject: [PATCH] Use realpath when creating conf.bak as well --- kittens/themes/collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kittens/themes/collection.py b/kittens/themes/collection.py index a239b89b2..b1d25afdd 100644 --- a/kittens/themes/collection.py +++ b/kittens/themes/collection.py @@ -257,7 +257,7 @@ class Theme: def save_in_conf(self, confdir: str, reload_in: str) -> None: atomic_save(self.raw.encode('utf-8'), os.path.join(confdir, 'current-theme.conf')) - confpath = os.path.join(confdir, 'kitty.conf') + confpath = os.path.realpath(os.path.join(confdir, 'kitty.conf')) try: with open(confpath) as f: raw = f.read()