🔧 chore(scripts): rename socket script to "socket.sh"

This commit is contained in:
retrozinndev
2025-11-14 14:08:51 -03:00
parent e14707ec48
commit b42ad1fa8f
2 changed files with 1 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
if gdbus introspect --session \
--dest io.github.retrozinndev.colorshell \
--object-path /io/github/retrozinndev/colorshell > /dev/null 2>&1; then
if command -v socat > /dev/null 2>&1; then
echo "$@" | socat - "${XDG_RUNTIME_DIR:-/run/user/$(id -u)}/colorshell.sock"
exit 0
else
echo "[warn] \`socat\` not installed, falling back to remote instance communication"
fi
fi