mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
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 @@ 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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue