about summary refs log tree commit diff
path: root/pkgs/applications/video
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2017-10-25 23:42:05 +0800
committerGitHub <noreply@github.com>2017-10-25 23:42:05 +0800
commita47c892bf59fbfa623617d75bffeb37b8733ba4f (patch)
treec812c8d853f1f6df31ecacedeeeb1fa20861e104 /pkgs/applications/video
parentc29f701db8f7a06fc98aeba27af924a4c7b8ef5b (diff)
parent9e1ef99fc22a7ed3cf9eef7c6696421c32a7329d (diff)
downloadnixlib-a47c892bf59fbfa623617d75bffeb37b8733ba4f.tar
nixlib-a47c892bf59fbfa623617d75bffeb37b8733ba4f.tar.gz
nixlib-a47c892bf59fbfa623617d75bffeb37b8733ba4f.tar.bz2
nixlib-a47c892bf59fbfa623617d75bffeb37b8733ba4f.tar.lz
nixlib-a47c892bf59fbfa623617d75bffeb37b8733ba4f.tar.xz
nixlib-a47c892bf59fbfa623617d75bffeb37b8733ba4f.tar.zst
nixlib-a47c892bf59fbfa623617d75bffeb37b8733ba4f.zip
Merge pull request #30784 from zraexy/kmplayer
kmplayer: fix desktop file exec
Diffstat (limited to 'pkgs/applications/video')
-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 f0d7fa353707..88055f2a8241 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 = [