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

9
.gitignore vendored
View file

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

4
debian/control vendored
View file

@ -15,6 +15,8 @@ Architecture: amd64 arm64
Depends:
${misc:Depends},
${shlibs:Depends},
cosmic-comp,
cosmic-panel,
cosmic-comp
cosmic-applet-host,
cosmic-applets,
Description: The session for the COSMIC desktop

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();