Commit | Line | Data |
---|---|---|
1 | #!/bin/bash | |
2 | TMPFILE="/tmp/xsock-$USER"; | |
3 | [ -f "$TMPFILE" ] && . "$TMPFILE" | |
4 | [ -n "$XSOCK_PID" ] && kill -0 "$XSOCK_PID" 2>/dev/null || { | |
5 | PATH="./:$PATH" | |
6 | eval "$(mkxsock $@ | tee $TMPFILE)" | |
7 | echo "XSOCK_PID set to $XSOCK_PID" >&2 | |
8 | } | |
9 | export XSOCK_PID XSOCK_WID |