pipewire-controller: trying to send sigusr1 to xrootdatetime
This commit is contained in:
parent
7b7e007cd1
commit
bcfe7a7c9c
1 changed files with 22 additions and 0 deletions
|
@ -44,6 +44,28 @@ let
|
||||||
.output()
|
.output()
|
||||||
.expect("Unable to play audio via mpv");
|
.expect("Unable to play audio via mpv");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let xrootdatetime_pid_raw =
|
||||||
|
Command::new("systemctl")
|
||||||
|
.args([
|
||||||
|
"--user",
|
||||||
|
"show",
|
||||||
|
"--property", "MainPID",
|
||||||
|
"--value", "xrootdatetime"
|
||||||
|
])
|
||||||
|
.output();
|
||||||
|
|
||||||
|
if let Ok(xrootdatetime_pid_raw) = xrootdatetime_pid_raw {
|
||||||
|
if let Ok(xrootdatetime_pid) = str::from_utf8(&xrootdatetime_pid_raw.stdout[..]) {
|
||||||
|
let _ = Command::new("kill")
|
||||||
|
.args([
|
||||||
|
"-s",
|
||||||
|
"SIGUSR1",
|
||||||
|
xrootdatetime_pid
|
||||||
|
])
|
||||||
|
.spawn();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
|
|
Loading…
Reference in a new issue