2001-05-30 23:30:58 -04:00
|
|
|
#! /bin/bash
|
2001-07-04 00:33:31 -04:00
|
|
|
|
2001-06-03 01:39:43 -04:00
|
|
|
if test -z "$SCREENS"; then
|
2001-06-30 19:17:52 -04:00
|
|
|
SCREENS=1
|
2001-06-03 01:39:43 -04:00
|
|
|
fi
|
2001-06-03 14:33:59 -04:00
|
|
|
|
|
|
|
if test "$DEBUG" = none; then
|
|
|
|
DEBUG=
|
|
|
|
elif test -z "$DEBUG"; then
|
2001-07-02 21:45:43 -04:00
|
|
|
DEBUG=
|
2001-06-03 14:33:59 -04:00
|
|
|
fi
|
|
|
|
|
2001-06-10 23:24:20 -04:00
|
|
|
if test -z "$CLIENTS"; then
|
|
|
|
CLIENTS=0
|
|
|
|
fi
|
|
|
|
|
2001-07-27 00:22:18 -04:00
|
|
|
if test -z "$SM_CLIENTS"; then
|
|
|
|
SM_CLIENTS=0
|
|
|
|
fi
|
|
|
|
|
2001-08-03 00:20:27 -04:00
|
|
|
if test -n "$EVIL_TEST"; then
|
|
|
|
TEST_CLIENT='./wm-tester/wm-tester --evil'
|
|
|
|
fi
|
|
|
|
|
2001-08-19 21:42:44 -04:00
|
|
|
if test -n "$ICON_TEST"; then
|
|
|
|
TEST_CLIENT='./wm-tester/wm-tester --icon-windows'
|
|
|
|
fi
|
|
|
|
|
2001-06-11 01:47:51 -04:00
|
|
|
if test -z "$ONLY_WM"; then
|
2001-07-12 01:53:56 -04:00
|
|
|
Xnest -ac :1 -scrns $SCREENS -geometry 640x480 -bw 15 &
|
2001-08-19 02:23:59 -04:00
|
|
|
## usleep 800000
|
|
|
|
sleep 1
|
2001-06-10 23:24:20 -04:00
|
|
|
|
2001-08-03 00:20:27 -04:00
|
|
|
if test -n "$TEST_CLIENT"; then
|
|
|
|
DISPLAY=:1 $TEST_CLIENT &
|
|
|
|
fi
|
|
|
|
|
2001-06-11 01:47:51 -04:00
|
|
|
if test $CLIENTS != 0; then
|
|
|
|
for I in `seq 1 $CLIENTS`; do
|
2001-08-19 02:23:59 -04:00
|
|
|
echo "Launching xterm $I"
|
2001-06-11 01:47:51 -04:00
|
|
|
DISPLAY=:1 xterm -geometry 25x15 &
|
|
|
|
done
|
|
|
|
fi
|
2001-07-27 00:22:18 -04:00
|
|
|
|
|
|
|
if test $SM_CLIENTS != 0; then
|
|
|
|
for I in `seq 1 $SM_CLIENTS`; do
|
2001-08-19 02:23:59 -04:00
|
|
|
echo "Launching gnome-terminal $I"
|
2001-07-27 00:22:18 -04:00
|
|
|
DISPLAY=:1 gnome-terminal --geometry 25x15 &
|
|
|
|
done
|
|
|
|
fi
|
2001-06-11 02:39:12 -04:00
|
|
|
|
2001-07-02 21:45:43 -04:00
|
|
|
usleep 50000
|
2001-06-11 01:47:51 -04:00
|
|
|
|
|
|
|
DISPLAY=:1 xsetroot -solid royalblue3
|
2001-06-10 23:24:20 -04:00
|
|
|
fi
|
|
|
|
|
2001-06-11 01:47:51 -04:00
|
|
|
if test -z "$ONLY_SETUP"; then
|
2001-10-26 00:00:38 -04:00
|
|
|
METACITY_DEBUG_BUTTON_GRABS=1 METACITY_DISPLAY=:1 exec libtool --mode=execute $DEBUG ./metacity $OPTIONS
|
2001-06-11 01:47:51 -04:00
|
|
|
fi
|