From fe35d034046871233c74b9f247e27ba6d244f291 Mon Sep 17 00:00:00 2001 From: Sean Borg Date: Wed, 19 Apr 2023 06:55:40 +0100 Subject: [PATCH] spectacle: add wrapGAppsHook Fixes no Gsettings error when clicking saveAs. Following method mentioned in https://github.com/NixOS/nixpkgs/issues/16285 --- pkgs/applications/kde/spectacle.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/kde/spectacle.nix b/pkgs/applications/kde/spectacle.nix index db819ba41f97..93e3f8563980 100644 --- a/pkgs/applications/kde/spectacle.nix +++ b/pkgs/applications/kde/spectacle.nix @@ -5,11 +5,12 @@ , knotifications, kscreen, kwidgetsaddons, kwindowsystem, kxmlgui, libkipi , qtx11extras, knewstuff, kwayland, qttools, kcolorpicker, kimageannotator , qcoro, qtquickcontrols2, wayland, plasma-wayland-protocols, kpurpose, kpipewire +, wrapGAppsHook }: mkDerivation { pname = "spectacle"; - nativeBuildInputs = [ extra-cmake-modules kdoctools ]; + nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ]; buildInputs = [ kconfig kcoreaddons kdbusaddons kdeclarative ki18n kio knotifications kscreen kwidgetsaddons kwindowsystem kxmlgui libkipi qtx11extras xcb-util-cursor @@ -20,6 +21,13 @@ mkDerivation { substituteInPlace desktop/org.kde.spectacle.desktop.cmake \ --replace "Exec=@QtBinariesDir@/qdbus" "Exec=${lib.getBin qttools}/bin/qdbus" ''; + + dontWrapGApps = true; + + preFixup = '' + qtWrapperArgs+=("''${gappsWrapperArgs[@]}") + ''; + propagatedUserEnvPkgs = [ kipi-plugins libkipi ]; meta = with lib; { homepage = "https://apps.kde.org/spectacle/";