Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 915703

Summary: gui-wm/sway: consider providing portal config file
Product: Gentoo Linux Reporter: Sam James <sam>
Component: Current packagesAssignee: Matthew Thode ( prometheanfire ) <prometheanfire>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo, pacho, speedjack95
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/50395
https://bugs.gentoo.org/show_bug.cgi?id=915356
https://bugs.gentoo.org/show_bug.cgi?id=915702
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 915704    

Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-14 02:37:10 UTC
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.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-30 09:51:20 UTC
ping
Comment 2 Pacho Ramos gentoo-dev 2023-12-20 10:06:54 UTC
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
Comment 3 flypen 2023-12-30 21:31:22 UTC
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.
Comment 4 Larry the Git Cow gentoo-dev 2024-01-01 20:21:05 UTC
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(-)
Comment 5 Larry the Git Cow gentoo-dev 2024-01-01 20:35:21 UTC
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(-)