Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: sway-portals.conf for xdg-desktop-portals #7773

Closed
yourealwaysbe opened this issue Oct 8, 2023 · 4 comments
Closed

Feature request: sway-portals.conf for xdg-desktop-portals #7773

yourealwaysbe opened this issue Oct 8, 2023 · 4 comments
Labels
enhancement New feature or incremental improvement

Comments

@yourealwaysbe
Copy link

Since version 1.17, xdg-desktop-portals requires desktops to declare which portals should be used. This is via a file, e.g. /usr/share/xdg-desktop-portal/sway-portals.conf :

[preferred]
default=wlr;gtk

Or this more precise one used by Fedora. Or "default=*" to just use whatever is available.

It's not clear to me whether Sway should provide a default, individual distributions should provide their own, or end users should take care of it with a local config. The Arch Linux packagers prefer an upstream file.

@yourealwaysbe yourealwaysbe added the enhancement New feature or incremental improvement label Oct 8, 2023
@emersion
Copy link
Member

emersion commented Oct 8, 2023

Sway does not officially support xdg-desktop-portal. xdpw is a third-party project. I don't think it's Sway's responsibility to ship any kind of portal-related file.

@yourealwaysbe
Copy link
Author

Ok -- i'll got for a note in the Arch Wiki.

archlinux-github pushed a commit to archlinux/aur that referenced this issue Oct 29, 2023
As of version 1.17, xdg-desktop-portal requires desktops to declare
which portals should be used. For Sway, this requires a file
/usr/share/xdg-desktop-portal/sway-portals.conf (or a local user
config).

A reasonable default is to use GTK for the file picker (as wlr doesn't
have file picker support) and wlr for screencast/screenshot support.
Fedora does this similarly. [1]

Upstream is not interested in shipping a configuration file [2] so we
need to do it downstream.

Fixes #72297
Fixes #79883

[1] https://src.fedoraproject.org/rpms/sway/blob/rawhide/f/sway-portals.conf
[2] swaywm/sway#7773

See https://gitlab.archlinux.org/archlinux/packaging/packages/sway/-/commit/c85a455eb653256b57b0b1661e398a48946e85b4
@cescobaz
Copy link

Hello! Could be this issue related to the fact that I can't record my screen anymore?
I updated to version 1-1.8.1-2, but I noticed no difference.

Thanks

@bl4ckb0ne
Copy link
Contributor

Open a new issue for this.

WillPower3309 pushed a commit to WillPower3309/swayfx that referenced this issue Nov 27, 2023
Integrates commits c85a455e and 2f9c63b0 from extra/sway.

Copied from c85a455e:

> As of version 1.17, xdg-desktop-portal requires desktops to declare
> which portals should be used. For Sway, this requires a file
> /usr/share/xdg-desktop-portal/sway-portals.conf (or a local user
> config).
>
> A reasonable default is to use GTK for the file picker (as wlr doesn't
> have file picker support) and wlr for screencast/screenshot support.
> Fedora does this similarly. [1]
>
> Upstream is not interested in shipping a configuration file [2] so we
> need to do it downstream.
>
> [1] https://src.fedoraproject.org/rpms/sway/blob/rawhide/f/sway-portals.conf
> [2] swaywm/sway#7773

https://gitlab.archlinux.org/archlinux/packaging/packages/sway/-/commit/c85a455eb653256b57b0b1661e398a48946e85b4
https://gitlab.archlinux.org/archlinux/packaging/packages/sway/-/commit/2f9c63b0539119acb63d6028c61d41c7faa1cebb
archlinux-github pushed a commit to archlinux/aur that referenced this issue Nov 28, 2023
As of version 1.17, xdg-desktop-portal requires desktops to declare
which portals should be used. For Sway, this requires a file
/usr/share/xdg-desktop-portal/sway-portals.conf (or a local user
config).

A reasonable default is to use GTK for the file picker (as wlr doesn't
have file picker support) and wlr for screencast/screenshot support.
Fedora does this similarly. [1]

Upstream is not interested in shipping a configuration file [2] so we
need to do it downstream.

Fixes #72297
Fixes #79883

[1] https://src.fedoraproject.org/rpms/sway/blob/rawhide/f/sway-portals.conf
[2] swaywm/sway#7773
archlinux-github pushed a commit to archlinux/aur that referenced this issue Jan 26, 2024
As of version 1.17, xdg-desktop-portal requires desktops to declare
which portals should be used. For Sway, this requires a file
/usr/share/xdg-desktop-portal/sway-portals.conf (or a local user
config).

A reasonable default is to use GTK for the file picker (as wlr doesn't
have file picker support) and wlr for screencast/screenshot support.
Fedora does this similarly. [1]

Upstream is not interested in shipping a configuration file [2] so we
need to do it downstream.

Fixes #72297
Fixes #79883

[1] https://src.fedoraproject.org/rpms/sway/blob/rawhide/f/sway-portals.conf
[2] swaywm/sway#7773
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or incremental improvement
Development

No branches or pull requests

4 participants