wip: applet host

This commit is contained in:
Ashley Wulber 2022-07-15 12:52:23 -04:00
parent b33efc83df
commit 41cdc48105
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
2 changed files with 17 additions and 0 deletions

View file

@ -65,6 +65,14 @@ async fn main() -> Result<()> {
comp::create_privileged_socket(&mut sockets, &env_vars)
.wrap_err("failed to create dock socket")?,
);
generic::run_executable(
token.child_token(),
info_span!(parent: None, "cosmic-applet host"),
"cosmic-applet-host",
vec![],
comp::create_privileged_socket(&mut sockets, &env_vars)
.wrap_err("failed to create applet-host socket")?,
);
socket_tx.send(sockets).unwrap();
let mut signals = Signals::new(vec![libc::SIGTERM, libc::SIGINT]).unwrap();