mpv: add NoDisplay=true to umpv.desktop

This commit is contained in:
Martino Fontana 2023-07-21 15:13:28 +02:00 committed by Anderson Torres
parent da0397b870
commit 875ec026c9

View File

@ -201,6 +201,7 @@ in stdenv.mkDerivation (finalAttrs: {
cp ../TOOLS/umpv $out/bin
cp $out/share/applications/mpv.desktop $out/share/applications/umpv.desktop
sed -i '/Icon=/ ! s/mpv/umpv/g; s/^Exec=.*/Exec=umpv %U/' $out/share/applications/umpv.desktop
printf "NoDisplay=true\n" >> $out/share/applications/umpv.desktop
'' + lib.optionalString stdenv.isDarwin ''
mkdir -p $out/Applications
cp -r mpv.app $out/Applications