Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #killx() {
- # proc=`ps xa | grep "X :1" | grep "SL" | awk '{print $1}'`;
- # if [ $proc ]; then
- # kill proc;
- # fi;
- #}
- bin=$1
- [ -x "$bin" ] && bin=$(readlink -f "$bin")
- [ -x "$bin" ] || bin=$(which "$bin" 2>/dev/null)
- [ -x "$bin" ] || { echo "No such executable \"$1\""; exit 1; }
- # killx && sleep 1
- # # http://www.linuxquestions.org/questions/showthread.php?threadid=38281
- # xauth add :1 . `mcookie`
- # X -screen "NX" :1 &
- # DISPLAY=:1 $1
- # sleep 1; killx
- xauth add :1 . `mcookie`
- export __GL_FSAA_MODE=5
- xinit "$bin" -- :1 #-xf86config xorg.conf -screen NX
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement