mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
Reload config in parent kitty when running the themes kitten
This commit is contained in:
parent
9e2590eb15
commit
4645e78fa7
1 changed files with 3 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ import json
|
|||
import os
|
||||
import re
|
||||
import shutil
|
||||
import signal
|
||||
import tempfile
|
||||
import zipfile
|
||||
from contextlib import suppress
|
||||
|
|
@ -257,6 +258,8 @@ class Theme:
|
|||
with open(confpath + '.bak', 'w') as f:
|
||||
f.write(raw)
|
||||
atomic_save(nraw.encode('utf-8'), confpath)
|
||||
if 'KITTY_PID' in os.environ:
|
||||
os.kill(int(os.environ['KITTY_PID']), signal.SIGUSR1)
|
||||
|
||||
|
||||
class Themes:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue