Commit 9ae541a3 authored by apfelkuchen06's avatar apfelkuchen06 Committed by Anderson Torres
Browse files

mpv: fix umpv.desktop

mpv ships with a wrapper-script umpv that adds files to the queue of a currently
running mpv instance. This script does not take any options.

The desktop file for it simply substituted mpv with umpv in mpv.desktop,
resuting in an incorrect desktop file with `Exec=umpv --player-operation-mode=pseudo-gui -- %U`.
This resulted in umpv adding bogus files to the queue.
parent 7b2c4fc0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -200,7 +200,7 @@ in stdenv.mkDerivation (finalAttrs: {
    cp ../TOOLS/mpv_identify.sh $out/bin
    cp ../TOOLS/umpv $out/bin
    cp $out/share/applications/mpv.desktop $out/share/applications/umpv.desktop
    sed -i '/Icon=/ ! s/mpv/umpv/g' $out/share/applications/umpv.desktop
    sed -i '/Icon=/ ! s/mpv/umpv/g; s/^Exec=.*/Exec=umpv %U/' $out/share/applications/umpv.desktop
  '' + lib.optionalString stdenv.isDarwin ''
    mkdir -p $out/Applications
    cp -r mpv.app $out/Applications