#!/usr/bin/env sh set -eu # Use local xdg-open if not in an ssh session [ -n "$SSH_TTY" ] || exec /usr/bin/xdg-open "$@" if [ -p /dev/stdin ]; then exec nc -U "$XDG_RUNTIME_DIR/opener.sock"