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
|
|
@ -1178,6 +1178,7 @@ impl cosmic::Application for CosmicAppList {
|
|||
},
|
||||
WaylandUpdate::ActivationToken {
|
||||
token,
|
||||
app_id,
|
||||
exec,
|
||||
gpu_idx,
|
||||
} => {
|
||||
|
|
@ -1194,8 +1195,8 @@ impl cosmic::Application for CosmicAppList {
|
|||
.map(|(k, v)| (k.clone(), v.clone())),
|
||||
);
|
||||
}
|
||||
tokio::task::spawn_blocking(|| {
|
||||
cosmic::desktop::spawn_desktop_exec(exec, envs);
|
||||
tokio::spawn(async move {
|
||||
cosmic::desktop::spawn_desktop_exec(exec, envs, app_id.as_deref()).await
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue