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

9
.gitignore vendored
View file

@ -10,6 +10,7 @@
# Debian packaging stuff # Debian packaging stuff
.cargo .cargo
vendor/
vendor.tar vendor.tar
*.xz *.xz
*.deb *.deb
@ -19,3 +20,11 @@ vendor.tar
*.deb.tar.* *.deb.tar.*
*.buildinfo *.buildinfo
*.build *.build
debian/*
!debian/*install
!debian/*postinst
!debian/changelog
!debian/control
!debian/links
!debian/rules
!debian/source

View file

@ -65,6 +65,14 @@ async fn main() -> Result<()> {
comp::create_privileged_socket(&mut sockets, &env_vars) comp::create_privileged_socket(&mut sockets, &env_vars)
.wrap_err("failed to create dock socket")?, .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(); socket_tx.send(sockets).unwrap();
let mut signals = Signals::new(vec![libc::SIGTERM, libc::SIGINT]).unwrap(); let mut signals = Signals::new(vec![libc::SIGTERM, libc::SIGINT]).unwrap();