Talk:XDG Desktop Portal

From ArchWiki

xdg-desktop-portal no longer have implicit fallback

xdg-desktop-portal no longer has an implicit fallback, since version 1.17.


It has been disabled as shown in https://github.com/flatpak/xdg-desktop-portal/blob/main/src/portal-impl.c#L590

In practice, this means that calls to implements (e.g.: gtk, wlr, etc.) which don't implement all the interfaces, such as xdg-desktop-portal-wlr, will not get redirected to other implements (e.g.: OpenURI, not implemented in xdg-desktop-portal-wlr, no longer works in the [current] default config, out of the box).


You need to explicitly create a portals.conf config, such as this one for WLR (which implements only 2 interfaces: Screencast and Screenshot) :


```

[preferred]

# use xdg-desktop-portal-gtk for every portal interface

default=gtk

# except for the xdg-desktop-portal-wlr supplied interfaces

org.freedesktop.impl.portal.Screencast=wlr

org.freedesktop.impl.portal.Screenshot=wlr

```

This way, everything will go to gtk, except those 2.


I think the above is sufficiently important that it should be added to the Wiki.


Thanks! Yam4710 (talk)


Source, and additional details : https://github.com/flatpak/xdg-desktop-portal/issues/1077#issuecomment-1715896552 Yam4710 (talk) 17:41, 23 October 2023 (UTC)Reply[reply]

Heya, this has a default since sway 1:1.8.1-2 now. :) Ainola (talk) 07:41, 29 October 2023 (UTC)Reply[reply]
Nice! 👍
and the new "tip" added is a good explanation. Yam4710 (talk) 09:53, 29 October 2023 (UTC)Reply[reply]