diff options
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/main.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/main.zig b/runtime/main.zig index aa35e687..02a41c2f 100644 --- a/runtime/main.zig +++ b/runtime/main.zig @@ -1583,11 +1583,12 @@ fn nativeMain(std_init: std.process.Init) !void { daemon.resumeLink(rec.link, rec.stub, kind, opts.ninep_name, rec.state orelse if (detached) .detached else .attached); } else if (paired) |fd| { // A window's pair's session: its first client on `fd`, the daemon - // its own to dial (and to start, when none runs). + // its own to dial (and to start, when none runs), listed as the + // window's (P49: only a window's pair execs one with `--paired`). opts.pair = fd; term = .detached; detached = true; - if (daemon.wanted()) _ = daemon.register(null, kind, opts.ninep_name, .pair); + if (daemon.wanted()) _ = daemon.register(null, .gui, opts.ninep_name, .pair); } else if (detach == null and std.c.getenv("PARDES_PAIR") != null) { // The last step's way, behind its variable until it is the default: // this terminal or window a client of a session forked off for it |
