summarylogtreecommitdiffstats
path: root/sway-portals.conf
AgeCommit message (Collapse)Author
2024-04-21Add Inhibit=none to sway-portals.confIsmo Toijala
default=gtk is used for org.freedesktop.impl.portal.Inhibit. However, xdg-desktop-portal-gtk's implementation of this interface tries to use the DBus interfaces org.gnome.SessionManager and org.freedesktop.ScreenSaver, neither of which is implemented by Sway. One way this manifests is that newer versions of Firefox will not idle-inhibit when playing videos. Adding org.freedesktop.impl.portal.Inhibit=none to sway-portals.conf will cause at least Firefox to use wayland's idle-inhibit protocol instead, which sway does implement. https://gitlab.archlinux.org/archlinux/packaging/packages/sway/-/commit/87acbcfcc8ea6a75e69ba7b0c976108d8e54855b https://gitlab.archlinux.org/archlinux/packaging/packages/sway/-/commit/9ef703d58ab85342e238b21f4d5ea711fb4c33de https://gitlab.archlinux.org/archlinux/packaging/packages/sway/-/commit/8aa59c86c558119d08f89e019119ddd8f3fcb81f https://gitlab.archlinux.org/archlinux/packaging/packages/sway/-/commit/9405c3e6e2a215cef79d3561bc4792e26cbfd1d0
2024-01-14Fix typo in XDG Desktop Portal configuration fileIsmo Toijala
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.
2023-10-29Support New portals req for XDG_CURRENT_DESKTOPIsmo Toijala
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 See https://gitlab.archlinux.org/archlinux/packaging/packages/sway/-/commit/c85a455eb653256b57b0b1661e398a48946e85b4