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