From d56282776b152399cd7ee00035de08a61efac8bf Mon Sep 17 00:00:00 2001 From: Soispha Date: Fri, 29 Dec 2023 09:58:57 +0100 Subject: feat(sys/srvc/xdg/termfilechooser): Reactive --- sys/svcs/xdg/default.nix | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) (limited to 'sys/svcs') diff --git a/sys/svcs/xdg/default.nix b/sys/svcs/xdg/default.nix index 57d915b3..e2392213 100644 --- a/sys/svcs/xdg/default.nix +++ b/sys/svcs/xdg/default.nix @@ -7,35 +7,37 @@ xdg = { portal = { enable = true; - # termfilechooser = { - # enable = false; - # settings = { - # filechooser = { - # cmd = "${sysLib.writeShellScriptWithLibraryAndKeepPath { - # name = "lf_wrapper"; - # src = ./scripts/lf_wrapper; - # dependencies = with pkgs; [ - # lf - # ]; - # }}"; - # }; - # }; - # }; + termfilechooser = { + enable = false; + settings = { + filechooser = { + cmd = "${sysLib.writeShellScriptWithLibraryAndKeepPath { + name = "lf_wrapper"; + src = ./scripts/lf_wrapper; + dependencies = with pkgs; [ + lf + ]; + }}"; + }; + }; + }; config = { common = { # NOTE: The next entry is supposedly needed for gtk based apps <2023-08-31> - default = ["gtk"]; + default = ["wlr" "gtk"]; + "org.freedesktop.impl.portal.FileChooser" = ["termfilechooser"]; }; # TODO: Also activate, when on another wlr-based compositor <2023-11-25> river = { - default = ["wlr"]; + default = ["wlr" "gtk"]; + "org.freedesktop.impl.portal.FileChooser" = ["termfilechooser"]; }; }; extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-wlr - # xdg-desktop-portal-termfilechooser + xdg-desktop-portal-termfilechooser ]; }; }; -- cgit 1.4.1