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
|
|
@ -179,6 +179,7 @@ impl ActivationHandler for AppData {
|
|||
fn new_token(&mut self, token: String, data: &ExecRequestData) {
|
||||
let _ = self.tx.unbounded_send(WaylandUpdate::ActivationToken {
|
||||
token: Some(token),
|
||||
app_id: data.app_id().map(|x| x.to_owned()),
|
||||
exec: data.exec.clone(),
|
||||
gpu_idx: data.gpu_idx,
|
||||
});
|
||||
|
|
@ -678,6 +679,7 @@ pub(crate) fn wayland_handler(
|
|||
} else {
|
||||
let _ = state.tx.unbounded_send(WaylandUpdate::ActivationToken {
|
||||
token: None,
|
||||
app_id: Some(app_id),
|
||||
exec,
|
||||
gpu_idx,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue