Call systemd StartTransientUnit what starting app
This is needed for things like `xdg-desktop-portal` to get the app ID from a pid, in unsandboxed apps. https://systemd.io/DESKTOP_ENVIRONMENTS documents this, and this sets things similarly to how Gnome does. Which should be good for now. Making `spawn_desktop_exec` an `async` function is reasonable given it is called in `async` functions in `cosmic-app-list`/`cosmic-launcher`/`cosmic-applibrary`.
This commit is contained in:
parent
fe035e37b0
commit
621de17cad
2 changed files with 59 additions and 5 deletions
|
|
@ -33,7 +33,9 @@ desktop = [
|
|||
"dep:freedesktop-desktop-entry",
|
||||
"dep:mime",
|
||||
"dep:shlex",
|
||||
"dep:tokio",
|
||||
"dep:textdistance",
|
||||
"dep:zbus",
|
||||
]
|
||||
# Enables keycode serialization
|
||||
serde-keycode = ["iced_core/serde"]
|
||||
|
|
@ -96,7 +98,7 @@ tokio = { version = "1.24.2", optional = true }
|
|||
tracing = "0.1"
|
||||
unicode-segmentation = "1.6"
|
||||
url = "2.4.0"
|
||||
zbus = { version = "4.2.1", default-features = false, optional = true }
|
||||
zbus = { version = "4.2.1", default-features = false, features = ["tokio"], optional = true }
|
||||
|
||||
[target.'cfg(unix)'.dependencies]
|
||||
freedesktop-icons = "0.2.5"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue