2 Commits (7b79783456546e856166d00de4adec8d7be073b3)

Author SHA1 Message Date
Ferdinand Bachmann 3dfb6db712 Fix typo in XDG Desktop Portal configuration file
The ScreenCast portal was misspelled as Screencast, which causes
xdg-desktop-portal to fall back to using the deprecated UseIn key from
the portal definitions, leading to a different portal being used if
multiple portals providing ScreenCast are installed.

Fixes #1


(cherry picked from commit e6a592c9d59ecbec5b5f89be989b8cc6e1072822)
10 months ago
Brett Cornwall c85a455eb6
Support New portals req for XDG_CURRENT_DESKTOP
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] https://github.com/swaywm/sway/issues/7773
1 year ago