about summary refs log tree commit diff
path: root/pkgs/applications/kde
diff options
context:
space:
mode:
authorolegkapitonov <35794650+olegkapitonov@users.noreply.github.com>2022-01-27 06:29:32 +0300
committerGitHub <noreply@github.com>2022-01-27 11:29:32 +0800
commitae5361fa1b3aefe862b843133901667444389f3e (patch)
tree7db998f5ea9e2a606b9ffd2561950d06bc0ea8cf /pkgs/applications/kde
parentcdc93e847d34da9929078d24da3645dc64ca8e92 (diff)
fix MTP support on KDE Plasma and Dolphin (#155405)
* fix MTP support on KDE Plasma and Dolphin

* Update pkgs/applications/kde/kio-extras.nix

Co-authored-by: ElXreno <elxreno@gmail.com>

Co-authored-by: Peter Hoeg <peter@hoeg.com>
Co-authored-by: ElXreno <elxreno@gmail.com>
Diffstat (limited to 'pkgs/applications/kde')
-rw-r--r--pkgs/applications/kde/kio-extras.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/applications/kde/kio-extras.nix b/pkgs/applications/kde/kio-extras.nix
index 4a41493a525c5..29a3bdc97bb81 100644
--- a/pkgs/applications/kde/kio-extras.nix
+++ b/pkgs/applications/kde/kio-extras.nix
@@ -19,5 +19,12 @@ mkDerivation {
     kpty syntax-highlighting libmtp libssh openexr openslp
     phonon qtsvg samba solid gperf
   ];
+
+  # org.kde.kmtpd5 DBUS service launches kiod5 binary from kio derivation, not from kio-extras
+  postInstall = ''
+    substituteInPlace $out/share/dbus-1/services/org.kde.kmtpd5.service \
+      --replace Exec=$out Exec=${kio}
+  '';
+
   CXXFLAGS = [ "-I${ilmbase.dev}/include/OpenEXR" ];
 }