mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-04 13:42:33 +02:00
Fix #7443
This commit is contained in:
@@ -125,10 +125,14 @@ The executed program will have privileges to run remote control commands in kitt
|
||||
for k, v in parse_env(x, env):
|
||||
env[k] = v
|
||||
|
||||
boss.run_background_process(
|
||||
cmdline, env=env, stdin=stdin_data, stdout=stdout.fileno(), stderr=stderr.fileno(),
|
||||
notify_on_death=on_death, remote_control_passwords=rcp, allow_remote_control=allow_remote_control
|
||||
)
|
||||
def callback(timer_id: Optional[int]) -> None:
|
||||
boss.run_background_process(
|
||||
cmdline, env=env, stdin=stdin_data, stdout=stdout.fileno(), stderr=stderr.fileno(),
|
||||
notify_on_death=on_death, remote_control_passwords=rcp, allow_remote_control=allow_remote_control
|
||||
)
|
||||
# Ensure that AsyncResponse is queued before the background process response
|
||||
from kitty.fast_data_types import add_timer
|
||||
add_timer(callback, 0, False)
|
||||
return AsyncResponse()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user