Skip to content

Commit

Permalink
Merge pull request #290009 from K900/mpv-smb
Browse files Browse the repository at this point in the history
mpv: don't advertise smb protocol support that we don't have
  • Loading branch information
Atemu authored Feb 20, 2024
2 parents 2e68983 + 06885ad commit f8f6450
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/applications/video/mpv/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f8f6450

Please sign in to comment.