We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 151391e commit b529c94Copy full SHA for b529c94
Configs/.local/bin/hyde-shell
@@ -467,10 +467,12 @@ run_pypr() {
467
if [[ -S "$socket_path" ]] && pgrep -u "$USER" pypr >/dev/null 2>&1; then
468
message="${*:-"help"}"
469
# Send the message to the socket and print the response
470
- if ! printf "%s" "${message[@]}" | nc -N -U "$socket_path"; then
471
- if ! printf "%s" "${message[@]}" | socat - UNIX-CONNECT:"$socket_path"; then
+ if ! printf "%s" "${message[@]}" | nc -N -U "$socket_path" 2>/dev/null; then
+ if ! printf "%s" "${message[@]}" | socat - UNIX-CONNECT:"$socket_path" 2>/dev/null; then
472
+ if ! pypr "${message[@]}"; then
473
print_log -sec "pypr" "Error communicating with socket: $socket_path"
474
exit 1
475
+ fi
476
fi
477
478
0 commit comments