mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-24 06:04:08 +00:00
Fix #7443
This commit is contained in:
parent
b3cc5aed30
commit
4d820a84bb
1 changed files with 8 additions and 4 deletions
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue