See bug 915356, but the gist is that with >=xdg-desktop-portals-1.18.0, Portals (and possibly DEs/WMs if they lack their own portal) must provide their own Portals config file. In particular, see https://github.com/flatpak/xdg-desktop-portal/issues/1077#issuecomment-1688007044. It looks to me like maybe we shouldn't do anything for the Sway ebuild, but instead make sure to put on the wiki how to configure it yourself to choose the relevant portals you want.
ping
I would also follow Fedora route for sway: https://src.fedoraproject.org/rpms/sway/c/30a4f85fedaeebcdcf25dbe4496bd771a777e73e?branch=rawhide I can do it myself if you prefer Thanks
I'm not sure, if the following is another bug, but it is at least related: The currently provided portal configuration file /usr/share/xdg-desktop-portal/portals/sway-portals.conf is not in configuration path according to https://wiki.gentoo.org/wiki/Xdg-desktop-portal. After moving this file to /usr/share/xdg-desktop-portal/sway-portals.conf my sway installation uses xdg-desktop-portal-wlr instead of xdg-desktop-portal-gtk.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3764bd0aa864e653593f1c95e6b27c15e7dfe3b7 commit 3764bd0aa864e653593f1c95e6b27c15e7dfe3b7 Author: Matthew Thode <prometheanfire@gentoo.org> AuthorDate: 2024-01-01 20:19:14 +0000 Commit: Matthew Thode <prometheanfire@gentoo.org> CommitDate: 2024-01-01 20:20:59 +0000 gui-wm/sway: fix install locatation for the portals file Closes: https://bugs.gentoo.org/915703 Signed-off-by: Matthew Thode <prometheanfire@gentoo.org> gui-wm/sway/{sway-1.8.1-r1.ebuild => sway-1.8.1-r2.ebuild} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17eb8f5c6c99746ad1144840b47f064cca82951f commit 17eb8f5c6c99746ad1144840b47f064cca82951f Author: Sam James <sam@gentoo.org> AuthorDate: 2024-01-01 20:24:20 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-01-01 20:34:21 +0000 gui-wm/sway: sync live Bug: https://bugs.gentoo.org/915703 Signed-off-by: Sam James <sam@gentoo.org> gui-wm/sway/sway-9999.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)