# Portal implementation pinning for the SWAY session. # # Without this file xdg-desktop-portal fell back to the deprecated `UseIn` key # and picked hyprland.portal at random ("Choosing hyprland.portal ... via the # deprecated UseIn key"), while the sway config also started the wlr portal -- # two implementations registered at once. # # Base is Arch's own /usr/share/xdg-desktop-portal/sway-portals.conf. # GlobalShortcuts is added because neither wlr nor gtk implements it, and # easyeffects requests it (journal: "Unknown method CreateSession or interface # org.freedesktop.impl.portal.GlobalShortcuts"). [preferred] default=gtk org.freedesktop.impl.portal.ScreenCast=wlr org.freedesktop.impl.portal.Screenshot=wlr # gtk's Inhibit uses org.gnome.SessionManager / org.freedesktop.ScreenSaver, # neither of which sway implements; "none" lets apps use Wayland's # idle-inhibit protocol, which sway does implement. org.freedesktop.impl.portal.Inhibit=none org.freedesktop.impl.portal.GlobalShortcuts=hyprland org.freedesktop.impl.portal.InputCapture=hyprland