mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-08 21:25:32 +02:00
Reload config in parent kitty when running the themes kitten
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user