Ubuntu Pastebin

Paste from ShayBox at Tue, 18 Oct 2016 23:15:21 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
if [ $# -ge 1 ]; then
        game="$1"
        openbox="$(which openbox)"
        tmpgame="/tmp/tmpgame.sh"
        DISPLAY=:1.0
        echo -e "${openbox} &\n${game}" > ${tmpgame}
        echo "starting ${game}"
        xinit ${tmpgame} -- :1 vt8 || exit 1
else
        echo "not a valid argument"
fi
Download as text