Debian Codegraph @

flaw/tests/start_in_xephyr.sh

raw symbols SCIP
1 #!/bin/bash
2 # Run Awesome in a nested server for tests
3
4 [ $# -ne 1 ] && { echo "`basename $0` rc_file"; exit 0; }
5 [ -f $1 ] || { echo "\"$1\" does not exist"; exit 0; }
6
7 RC_FILE=$1
8 AWESOME=`which awesome`
9 XEPHYR=`which Xephyr`
10
11 test -x $AWESOME || { echo "Please install Awesome"; exit 1; }
12 test -x $XEPHYR || { echo "Please install Xephyr"; exit 1; }
13
14 echo "Starting $XEPHYR"
15 $XEPHYR -ac -br -noreset -screen 800x600 :1 &
16 sleep 1
17
18 echo "Starting $AWESOME with $RC_FILE"
19 DISPLAY=:1.0 $AWESOME -c $RC_FILE