Skip to content

Commit 1194296

Browse files
author
jumps are op
authored
Fix non-optimal shell code
1 parent 8095cd7 commit 1194296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mpv-scheme-handler.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Desktop Entry]
22
Version=1.0
33
Type=Application
4-
Exec=/bin/sh -c 'URL=$(echo "%u" | sed -E "s|^mpv://||") && mpv --keep-open --player-operation-mode=pseudo-gui "${URL}" || notify-send -i mpv -w -A "Close" -A "Open=Open" "Opening ${URL} failed" | sh -c "[ \\"$(head -n1 -)\\" = "Open" ] && xdg-open \\"${URL}\\""'
4+
Exec=sh -c 'URL="%u"; URL=${URL#mpv://}; mpv --keep-open --player-operation-mode=pseudo-gui "$URL" || notify-send -i mpv -w -A Close -A Open=Open "Opening $URL failed" | { [ "$(head -n1)" = "Open" ] && xdg-open "$URL";}'
55
Icon=mpv
66
StartupNotify=true
77
Terminal=false

0 commit comments

Comments
 (0)