Jump to content

Talk:XDG Desktop Portal

From ArchWiki
Latest comment: 14 March by Affaisseras in topic Updates temporarily make me use the gtk file picker

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

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

Updates temporarily make me use the gtk file picker

It's temporary because it is fixed by manually restarting xdg-desktop-portal.service. I use the LXQT file picker, and my config isn't changed from the one suggested in the wiki article. I'll post some logs later when I catch this happening for the umpteenth time, just wondering if anyone also has this.

~/.config/xdg-desktop-portal/portals.conf
[preferred]
default=gtk
org.freedesktop.impl.portal.FileChooser=lxqt

I've not modified the system configs:

$ pacman -Qkk xdg-desktop-portal-gtk                                                        
xdg-desktop-portal-gtk: 119 total files, 0 altered files
$ pacman -Qkk xdg-desktop-portal-lxqt
xdg-desktop-portal-lxqt: 16 total files, 0 altered files
$ pacman -Qkk xdg-desktop-portal     
xdg-desktop-portal: 189 total files, 0 altered files

Affaisseras (talk) 20:54, 14 March 2026 (UTC)Reply