From 6011de6152de8d6ea45d1e88ab2a2df990e649ce Mon Sep 17 00:00:00 2001 From: Adam0 Date: Thu, 17 Sep 2026 13:24:16 +0200 Subject: [PATCH] Build xdg-desktop-portal-hyprland with system Qt to fix share-picker segfault The Hyprland flake pins its own older nixpkgs (Qt 6.11.1) and builds xdg-desktop-portal-hyprland with it. Qt style plugins (qt6ct, kvantum) installed from the system nixpkgs are built against Qt 6.11.2, so loading them into the portal's hyprland-share-picker segfaults it. The picker dies before showing its window, gpu-screen-recorder sees the portal request cancelled, and Noctalia recordings never produce a file. Drop the overlay override so the system nixpkgs portal package (same source rev, linked against Qt 6.11.2) is used instead. --- modules/desktop/hyprland/overlay.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/desktop/hyprland/overlay.nix b/modules/desktop/hyprland/overlay.nix index 71ac612..97df504 100644 --- a/modules/desktop/hyprland/overlay.nix +++ b/modules/desktop/hyprland/overlay.nix @@ -4,7 +4,9 @@ packages = inputs.hyprland.packages.${system}; in { - inherit (packages) xdg-desktop-portal-hyprland; + # Keep the nixpkgs xdg-desktop-portal-hyprland: the Hyprland flake builds it + # against its own older Qt, which clashes with the system Qt style plugins + # and segfaults hyprland-share-picker when a Qt theme is set. # TODO(upstream): Remove after updating past Hyprland 0.56.2. # Accept Glaze 8 as supported by upstream Hyprland. -- 2.51.2