Update for spawn_desktop_exec that calls SpawnTransientUnit
Allows `xdg-desktop-portal` to get app id from PID. Also updates calls to `cosmic::process::spawn` to spawn in future.
This commit is contained in:
parent
b0e4e6fc6d
commit
293a91e8b1
11 changed files with 76 additions and 119 deletions
|
|
@ -382,7 +382,7 @@ impl cosmic::Application for CosmicNetworkApplet {
|
|||
let mut browser = std::process::Command::new("xdg-open");
|
||||
browser.arg("http://204.pop-os.org/");
|
||||
|
||||
cosmic::process::spawn(browser);
|
||||
tokio::spawn(cosmic::process::spawn(browser));
|
||||
}
|
||||
|
||||
self.update_nm_state(state);
|
||||
|
|
@ -500,7 +500,7 @@ impl cosmic::Application for CosmicNetworkApplet {
|
|||
cmd.env("XDG_ACTIVATION_TOKEN", &token);
|
||||
cmd.env("DESKTOP_STARTUP_ID", &token);
|
||||
}
|
||||
cosmic::process::spawn(cmd);
|
||||
tokio::spawn(cosmic::process::spawn(cmd));
|
||||
}
|
||||
},
|
||||
Message::ResetFailedKnownSsid(ssid) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue