Use realpath when creating conf.bak as well
This commit is contained in:
parent
b7d603c4de
commit
ba9adc127e
1 changed files with 1 additions and 1 deletions
|
|
@ -257,7 +257,7 @@ def save_in_dir(self, dirpath: str) -> None:
|
|||
|
||||
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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue