Fix incorrect conf reload watcher invocation when using --config=NONE

This commit is contained in:
Kovid Goyal 2026-05-01 20:19:29 +05:30
parent a89b7099ad
commit 1d61f8f8f6
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -1395,7 +1395,7 @@ def start(self, first_os_window_id: int, startup_sessions: Iterable[Session]) ->
from .update_check import run_update_check
run_update_check(get_options().update_check_interval * 60 * 60)
self.update_check_started = True
if opts.auto_reload_config >= 0 and not hasattr(self, 'config_reload_watcher_process'):
if opts.auto_reload_config >= 0 and not hasattr(self, 'config_reload_watcher_process') and opts.all_config_paths:
self.config_reload_watcher_process = subprocess.Popen(
[kitten_exe(), '__watch_conf__', str(os.getpid()), str(int(opts.auto_reload_config * 1000))] +
list(opts.all_config_paths), stdin=subprocess.PIPE)