On Thu, 07 Sep 2023 at 21:25:55 +0200, Yves-Alexis Perez wrote: > On Tue, 2023-08-29 at 11:51 +0100, Simon McVittie wrote: > > xdg-desktop-portal 1.17.x introduces a new way to select which portals will > > be used for which desktop environments, modelled on mimeapps.list: > > Hi Simon, > > thanks for the report but I have no idea what a “portal” is. So feel free to > provide a patch for that, I think it's unlikely we'll look at this soon.
Please see https://lists.debian.org/debian-devel/2023/08/msg00311.html for more context on what these are. If you are not already using Flatpak or Snap apps, the easiest way to try this functionality is to install libportal-tests-gtk3 or libportal-tests-gtk4 and run the /usr/bin/portal-test-gtk3 or /usr/bin/org.gnome.PortalTest.Gtk4 manual test program, which can do various operations, some of which will work in XFCE already (like opening a file dialog) and some of which won't (like enabling screencasting, for which there are backends for GNOME, KDE Plasma and wlroots-based compositors, but not XFCE as far as I know). I can suggest a patch, but I don't use XFCE myself, so I don't know what XFCE users or developers would want. This is really a question for upstream more than for Debian (although Debian could fill in the gaps if upstream is unable to), and I'll try to find time to open an upstream issue. There are basically two options. For feature parity with Debian 12, /usr/share/xdg-desktop-portal/xfce-portals.conf could contain: [preferred] default=gtk; and an appropriate XFCE metapackage could have a Depends, Recommends or Suggests (whichever is felt to be most appropriate) on xdg-desktop-portal-gtk. That's the fallback/last-resort backend that works anywhere, and should fit in reasonably well in any GTK-based environment. In trixie/sid there is a new package https://tracker.debian.org/pkg/xdg-desktop-portal-xapp which claims to support setting wallpaper, inhibiting suspend, taking screenshots, applying lockdown to settings, and querying desktop environment settings for Cinnamon, MATE and XFCE (although I don't think all interfaces are implemented for all three desktops). I haven't tested or reviewed this myself, and I know that MATE upstream developers are unsure about it (it seems to have come from Cinnamon and wasn't reviewed or tested by anyone in MATE). If XFCE wants to use this to provide wider functionality, then that would be something like: [preferred] default=xapp;gtk; smcv