diff options
author | Sean Borg <sean@seanborg.tech> | 2023-04-19 06:55:40 +0100 |
---|---|---|
committer | Sean Borg <sean@seanborg.tech> | 2023-04-21 08:35:31 +0100 |
commit | fe35d034046871233c74b9f247e27ba6d244f291 (patch) | |
tree | 04aa61380d91f44dfe4d7febf210bcbd850c7f67 /pkgs/applications/kde | |
parent | 2eadf6c6e37d1f99433fb8145ea35093a5c1e750 (diff) |
spectacle: add wrapGAppsHook
Fixes no Gsettings error when clicking saveAs. Following method mentioned in https://github.com/NixOS/nixpkgs/issues/16285
Diffstat (limited to 'pkgs/applications/kde')
-rw-r--r-- | pkgs/applications/kde/spectacle.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/applications/kde/spectacle.nix b/pkgs/applications/kde/spectacle.nix index db819ba41f97b..93e3f8563980d 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/"; |