python.video_converter_v3/kde_context_plugin/share/kio/servicemenus/local.sh

9 lines
No EOL
153 B
Bash
Executable file

#!/bin/bash
SERVER="ws://localhost:8000/"
for FILE in "$@"; do
JSON=$(printf '{"data_path": "%s"}' "$FILE")
echo "$JSON" | websocat "$SERVER"
done