Merge pull request #1 from pop-os/applet-host

applet host
This commit is contained in:
Ashley Wulber 2022-07-25 11:04:18 -04:00 committed by GitHub
commit afee62bc3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 1 deletions

View file

@ -77,6 +77,15 @@ async fn main() -> Result<()> {
env,
vec![fd],
);
let (env, fd) = comp::create_privileged_socket(&mut sockets, &env_vars).wrap_err("failed to create applet host")?;
generic::run_executable(
token.child_token(),
info_span!(parent: None, "cosmic-applet-host"),
"cosmic-applet-host",
vec![],
env,
vec![fd]
);
socket_tx.send(sockets).unwrap();
let (exit_tx, exit_rx) = oneshot::channel();