From 874102875db82c7305459e8dba711f3b72d63301 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 5 Sep 2025 20:52:36 +0300 Subject: [PATCH] Add ~/.config/xdg-desktop-portal --- dot_config/xdg-desktop-portal/sway-portals.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 dot_config/xdg-desktop-portal/sway-portals.conf diff --git a/dot_config/xdg-desktop-portal/sway-portals.conf b/dot_config/xdg-desktop-portal/sway-portals.conf new file mode 100644 index 0000000..acbaeac --- /dev/null +++ b/dot_config/xdg-desktop-portal/sway-portals.conf @@ -0,0 +1,14 @@ +# 2025-04-02: copied from /usr/share/xdg-desktop-portal/sway-portals.conf +[preferred] +default=gtk +org.freedesktop.impl.portal.ScreenCast=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 + +# 2025-04-02: needed for GTK applications? +# See: https://gitlab.com/WhyNotHugo/darkman/-/issues/65 +org.freedesktop.impl.portal.Settings=darkman