Use realpath when creating conf.bak as well

This commit is contained in:
Kovid Goyal 2021-08-08 10:49:41 +05:30
parent b7d603c4de
commit ba9adc127e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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