python.video_converter_v3/kde_context_plugin/share/kio/servicemenus/send.path.sh

9 lines
160 B
Bash
Executable file

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