1
0
Fork 0
forked from wry/wry

config: allow spawning clients with tags

This commit is contained in:
Julian Orth 2026-02-27 21:00:20 +01:00
parent 8b19315f50
commit a1df575262
11 changed files with 80 additions and 7 deletions

View file

@ -348,7 +348,15 @@ impl ConfigClient {
.drain()
.map(|(a, b)| (a, b.into_raw_fd()))
.collect();
if fds.is_empty() {
if command.tag.is_some() {
self.send(&ClientMessage::Run3 {
prog: &command.prog,
args: command.args.clone(),
env,
fds,
tag: command.tag.as_deref(),
});
} else if fds.is_empty() {
self.send(&ClientMessage::Run {
prog: &command.prog,
args: command.args.clone(),