FS#79883 - [sway] xdg-desktop-portal 1.17 requires desktops to declare portals
Attached to Project:
Arch Linux
Opened by Matthew Hague (shakedown1979) - Saturday, 07 October 2023, 12:27 GMT
Last edited by Brett Cornwall (ainola) - Sunday, 29 October 2023, 00:56 GMT
Opened by Matthew Hague (shakedown1979) - Saturday, 07 October 2023, 12:27 GMT
Last edited by Brett Cornwall (ainola) - Sunday, 29 October 2023, 00:56 GMT
|
Details
Description:
As of version 1.17, xdg-desktop-portal requires desktops to declare which portals should be used. Arch Linux recently upgraded to 1.18, causing existing (my) setups to break. https://github.com/flatpak/xdg-desktop-portal/blob/main/doc/portals-conf.rst For Sway, this requires a file /usr/share/xdg-desktop-portal/sway-portals.conf (or a local user config). An example file would be [preferred] default=wlr;gtk Or it could be "default=*" to just use anything available in alphabetical order. It's not clear to me whether this should be the responsibility of upstream, the distribution packager (like 50-systemd-user.conf), or the end user to provide the config. I thought i'd flag it up to see what opinions are. I'm happy to add a note to the wiki if it's preferred to leave it to the user. |
This task depends upon
Closed by Brett Cornwall (ainola)
Sunday, 29 October 2023, 00:56 GMT
Reason for closing: Fixed
Additional comments about closing: Hi all. So sorry for the delay in addressing this. I've pushed a fix to sway-1:1.8.1-2
Sunday, 29 October 2023, 00:56 GMT
Reason for closing: Fixed
Additional comments about closing: Hi all. So sorry for the delay in addressing this. I've pushed a fix to sway-1:1.8.1-2
It would be preferable to add this to the upstream code, so please open an issue here: https://github.com/swaywm/sway/issues
https://github.com/swaywm/sway/issues/7773
The value "wlr;gtk" seems sensible to me as a default. Users that want to use different portals can set up their own config file.