1
0
Fork 0

[.mailcap] Seems that filenames with apostrohes and brackets are not handled properly

Compile: gcc -o echo.exe echo.c
This commit is contained in:
Witold Filipczyk 2022-07-18 16:12:22 +02:00
parent 9b367de33b
commit 3af1280501
2 changed files with 9 additions and 1 deletions

View File

@ -1 +1 @@
audio/*; echo '{"command":["loadfile","%s","append-play"]}' | socat - /tmp/mpv.sock 2> /dev/null > /dev/null
audio/*; echo.exe %s | socat - /tmp/mpv.sock 2> /dev/null > /dev/null

8
contrib/audio/echo.c Normal file
View File

@ -0,0 +1,8 @@
#include <stdio.h>
int
main(int argc, char **argv)
{
printf("{\"command\":[\"loadfile\",\"%s\",\"append-play\"]}\n", argv[1]);
return 0;
}