mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 01:38:02 +02:00
Use realpath when creating conf.bak as well
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user