about summary refs log tree commit diff
path: root/pkgs/applications/kde
diff options
context:
space:
mode:
authornyanloutre <paul@nyanlout.re>2019-05-28 21:46:47 +0200
committernyanloutre <paul@nyanlout.re>2019-05-28 21:51:29 +0200
commitbb57a1056e6594b194612f05f76c885963f3617f (patch)
treea887a369cd14af6fce730ab4ff01f5bf246c1b5a /pkgs/applications/kde
parenteccb90a2d997d65dc514253b441e515d8e0241c3 (diff)
spectacle: fix qdbus path in desktop shortcut
Diffstat (limited to 'pkgs/applications/kde')
-rw-r--r--pkgs/applications/kde/spectacle.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/kde/spectacle.nix b/pkgs/applications/kde/spectacle.nix
index f036e8cf632c6..58eb288f6cc25 100644
--- a/pkgs/applications/kde/spectacle.nix
+++ b/pkgs/applications/kde/spectacle.nix
@@ -4,7 +4,7 @@
   ki18n, xcb-util-cursor,
   kconfig, kcoreaddons, kdbusaddons, kdeclarative, kio, kipi-plugins,
   knotifications, kscreen, kwidgetsaddons, kwindowsystem, kxmlgui, libkipi,
-  qtx11extras, knewstuff
+  qtx11extras, knewstuff, qttools
 }:
 
 mkDerivation {
@@ -16,5 +16,9 @@ mkDerivation {
     kscreen kwidgetsaddons kwindowsystem kxmlgui libkipi qtx11extras xcb-util-cursor
     knewstuff
   ];
+  postPatch = ''
+    substituteInPlace desktop/org.kde.spectacle.desktop \
+      --replace "Exec=qdbus" "Exec=${lib.getBin qttools}/bin/qdbus"
+  '';
   propagatedUserEnvPkgs = [ kipi-plugins libkipi ];
 }