From f250dda0b8df0e37453eb3e70f52b31ff05ae4cf Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Fri, 27 Jun 2025 16:43:58 -0400 Subject: fix xdg.portal after refactor --- modules/desktops/hyprland/default.nix | 3 +++ modules/desktops/wayland.nix | 9 ++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/modules/desktops/hyprland/default.nix b/modules/desktops/hyprland/default.nix index cc1122c..56eef35 100644 --- a/modules/desktops/hyprland/default.nix +++ b/modules/desktops/hyprland/default.nix @@ -25,6 +25,9 @@ in { extraPortals = [ inputs.hyprland.packages.${system}.xdg-desktop-portal-hyprland ]; + config = { + hyprland.common = ["gtk" "hyprland"]; + }; }; home-manager.users.${config.user} = { diff --git a/modules/desktops/wayland.nix b/modules/desktops/wayland.nix index ceef20a..600651f 100644 --- a/modules/desktops/wayland.nix +++ b/modules/desktops/wayland.nix @@ -10,10 +10,13 @@ in { config = mkIf cfg.wayland { xdg.portal = { enable = true; - wlr.enable = true; - extraPortals = [ - pkgs.xdg-desktop-portal-wlr + xdgOpenUsePortal = true; + extraPortals = with pkgs; [ + xdg-desktop-portal-gtk ]; + config = { + default.common = ["gtk"]; + }; }; programs.xwayland.enable = true; -- cgit v1.2.3-freya