Hello everyone!
After recent updates, file selection dialogs stopped working in applications such as Telegam (flathub) and GoogleChrome (rpm), and possibly in others as well.
My environment:
Sway window manager
XDG_CURRENT_DESKTOP=sway
xdg-desktop-portla-wlr
xdg-desktop-portla-gtk
xdg-desktop-portla-gnome
If I understand correctly, when setting the environment variable XDG_CURRENT_DESKTOP=sway, xdg-desktop-portal-wlr should be used. But it doesn’t support ‘org.freedesktop.potal.FileChooser’.
I removed the xdg-desktop-portla-wlr package, but the file dialogs did not work.
I also tried setting the environment variable XDG_CURRENT_DESKTOP=gnome (or GNOME), this also didn’t work.
I updated the xdg-desktop-portla package to version from Fedora Rawhide, and file dialogs began to open.
Problem with the xdg-desktop-portal 1.16.0-3.fc38 package.
Unlikely. portals.conf requirement was added in xdg-desktop-portal 1.17+, and f38 continues shipping 1.16: xdg-desktop-portal - Fedora Packages.
As far as I’m aware, nothing has been changed in f38 recently that could affect this. Don’t have any f38 machines available at the moment, will try to test on a fresh VM when I’m home.
On a clean up-to-date Fedora 38 (Sway) VM, everything works for me (with Chromium and ASHPD Demo app). I’m afraid there’s nothing we can fix on our side
Can you provide the following info:
versions of xdg-desktop-portal, xdg-desktop-portal-wlr, xdg-desktop-portal-gtk and sway-systemd packages
status of systemd user services for xdg-desktop-portal and all the backends (systemctl --user status xdg-desktop-portal\*.service)
check if you either include /etc/sway/config.d/10-systemd-session.conf or have exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway (or similar) command in your Sway config
2241173 – File chooser dialog is not showing with sway. Let’s see if that could be addressed in xdg-desktop-portal.
The bug description also offers a workaround (editing /usr/share/xdg-desktop-portal/portals/gtk.portal).
I didn’t change the setting in /usr/share/xdg-desktop-portal/portals/gtk.portal.
It’s probably better to override this file in /home/user/.local/share.