pop-os / libcosmic

WIP library for COSMIC applications
https://pop-os.github.io/libcosmic/cosmic/
Mozilla Public License 2.0
427 stars 41 forks source link

Call systemd `StartTransientUnit` when starting app #548

Closed ids1024 closed 2 months ago

ids1024 commented 2 months ago

This is needed for things like xdg-desktop-portal to get the app ID from a pid, in unsandboxed apps.

A couple things still should be fixed here, then cosmic-launcher, cosmic-app-list, and cosmic-app-library will need to be updated to use this.

ids1024 commented 2 months ago

I guess the use of tokio in https://github.com/pop-os/libcosmic/pull/548/commits/fd0e54747976c383f02212a753a2b0bde06af6c5, although a clean solution, is problematic if the tokio feature of libcosmic isn't enabled...

ids1024 commented 2 months ago

With the changes here:

These things seem reasonable.