xdg-desktop-portal icon indicating copy to clipboard operation
xdg-desktop-portal copied to clipboard

Introduce XDP_APP_INFO_KIND_CONTAINERS1 which gets all information from D-Bus

Open swick opened this issue 1 year ago • 7 comments

Get the org.fdo.DBus.Containers1 idea rolling!

flatpak: https://github.com/flatpak/flatpak/pull/5656 dbus: https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/449

This falls back to the PID based lookup (flatpak/snap) if D-Bus doesn't support the new interface.

Remaining issues, everything else is supposed to work:

  • Remapping paths (xdp_app_info_remap_path, xdp_app_info_get_path_for_fd) is not supported
  • Dynamic Launcher's TryExec (xdp_app_info_get_tryexec_path) is not supported

Should be ready for review.

swick avatar Jan 18 '24 19:01 swick

Found a few bugs and CI is green.

swick avatar Jan 23 '24 16:01 swick

Made the commit messages much more useful and addressed the review.

Who is the person I should nag for a review then?

swick avatar Jan 23 '24 18:01 swick

Who is the person I should nag for a review then?

Please be patient, I will get to this when I can. Nagging potential reviewers is likely to be counterproductive.

smcv avatar Jan 23 '24 18:01 smcv

@swick thanks. I was going to mention @smcv , but since they're already aware of this PR, let's wait for their review.

GeorgesStavracas avatar Jan 23 '24 19:01 GeorgesStavracas

Tried to pull out the non-Containers1 bits to https://github.com/flatpak/xdg-desktop-portal/pull/1281.

swick avatar Feb 08 '24 22:02 swick

This can be rebased now

GeorgesStavracas avatar Apr 04 '24 19:04 GeorgesStavracas

Turns out a few things can't really be expressed with just some key value pairs, such as path remapping and the details of installing dynamic launchers. I'm going to use the metadata to pass a bus and object which implements a common Contaienrs1 interface. Flatpak then implements this interface in the flatpak-session-helper and x-d-p can offload the functionality there.

swick avatar May 24 '24 20:05 swick