Fix incorrect conf reload watcher invocation when using --config=NONE
This commit is contained in:
parent
a89b7099ad
commit
1d61f8f8f6
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue