mpv: don't advertise smb protocol support that we don't have

This commit is contained in:
K900 2024-02-19 22:13:23 +03:00
parent ec1855a947
commit 06885ad43c

View File

@ -227,6 +227,10 @@ in stdenv'.mkDerivation (finalAttrs: {
cp mpv_identify.sh umpv $out/bin/
popd
pushd $out/share/applications
# patch out smb protocol reference, since our ffmpeg can't handle it
substituteInPlace mpv.desktop --replace-fail "smb," ""
sed -e '/Icon=/ ! s|mpv|umpv|g; s|^Exec=.*|Exec=umpv %U|' \
mpv.desktop > umpv.desktop
printf "NoDisplay=true\n" >> umpv.desktop