Add Inhibit=none to sway-portals.conf

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.

Fixes #2
ledoian
trillian 6 months ago committed by Brett Cornwall
parent e93da93ff0
commit 87acbcfcc8
No known key found for this signature in database
GPG Key ID: 6E7CE0B0A36DA2AE

@ -2,3 +2,8 @@
default=gtk default=gtk
org.freedesktop.impl.portal.ScreenCast=wlr org.freedesktop.impl.portal.ScreenCast=wlr
org.freedesktop.impl.portal.Screenshot=wlr org.freedesktop.impl.portal.Screenshot=wlr
# xdg-desktop-portal-gtk's implementation uses org.gnome.SessionManager and
# org.freedesktop.ScreenSaver, neither of which is implemented by Sway. This
# will cause some programs (e.g. Firefox) to use Wayland's idle-inhibit
# protocol instead, which sway does implement.
org.freedesktop.impl.portal.Inhibit=none

Loading…
Cancel
Save