Launch swaybg

This commit is contained in:
Lucy 2022-07-29 12:00:29 -04:00
parent 36adce5aa8
commit 29e6dd0f84
No known key found for this signature in database
GPG key ID: EBC517FAD666BBF1

View file

@ -77,6 +77,19 @@ 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, "swaybg"),
"swaybg",
vec![
"-i".into(),
"/usr/share/backgrounds/pop/kate-hazen-COSMIC-desktop-wallpaper.png".into(),
],
env,
vec![fd],
);
socket_tx.send(sockets).unwrap();
generic::run_executable(
token.child_token(),