about summary refs log tree commit diff
path: root/pkgs/applications/video/kmplayer
diff options
context:
space:
mode:
authorzraexy <zraexy@gmail.com>2017-10-25 06:57:43 -0800
committerzraexy <zraexy@gmail.com>2017-10-25 06:57:43 -0800
commit9e1ef99fc22a7ed3cf9eef7c6696421c32a7329d (patch)
tree7fb41044c2b419c8e6f26ebf0c192359f3f7ba02 /pkgs/applications/video/kmplayer
parent4068703502cb2948d09bc419d19e25b1e18502e2 (diff)
kmplayer: fix desktop file exec
Diffstat (limited to 'pkgs/applications/video/kmplayer')
-rw-r--r--pkgs/applications/video/kmplayer/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/video/kmplayer/default.nix b/pkgs/applications/video/kmplayer/default.nix
index f0d7fa3537076..88055f2a82416 100644
--- a/pkgs/applications/video/kmplayer/default.nix
+++ b/pkgs/applications/video/kmplayer/default.nix
@@ -21,6 +21,11 @@ mkDerivation rec {
     ./no-docs.patch # Don't build docs due to errors (kdelibs4support propagates kdoctools)
   ];
 
+  postPatch = ''
+    sed -i src/kmplayer.desktop \
+      -e "s,^Exec.*,Exec=$out/bin/kmplayer -qwindowtitle %c %i %U,"
+  '';
+
   nativeBuildInputs = [ extra-cmake-modules makeWrapper ];
 
   buildInputs = [