Merge pull request #290009 from K900/mpv-smb

mpv: don't advertise smb protocol support that we don't have
This commit is contained in:
Atemu 2024-02-20 09:46:49 +01:00 committed by GitHub
commit f8f6450852
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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