1
0
Fork 0
mutter-performance-source/src/run-metacity.sh

34 lines
612 B
Bash
Raw Normal View History

2001-05-31 03:30:58 +00:00
#! /bin/bash
2001-06-03 05:39:43 +00:00
if test -z "$SCREENS"; then
2001-06-30 23:17:52 +00:00
SCREENS=1
2001-06-03 05:39:43 +00:00
fi
2001-06-03 18:33:59 +00:00
if test "$DEBUG" = none; then
DEBUG=
elif test -z "$DEBUG"; then
2001-07-03 01:45:43 +00:00
DEBUG=
2001-06-03 18:33:59 +00:00
fi
2001-06-11 03:24:20 +00:00
if test -z "$CLIENTS"; then
CLIENTS=0
fi
2001-06-11 05:47:51 +00:00
if test -z "$ONLY_WM"; then
2001-07-03 01:45:43 +00:00
Xnest -ac :1 -scrns $SCREENS -geometry 640x600 -bw 15 &
usleep 100000
2001-06-11 03:24:20 +00:00
2001-06-11 05:47:51 +00:00
if test $CLIENTS != 0; then
for I in `seq 1 $CLIENTS`; do
DISPLAY=:1 xterm -geometry 25x15 &
done
fi
2001-06-11 06:39:12 +00:00
2001-07-03 01:45:43 +00:00
usleep 50000
2001-06-11 05:47:51 +00:00
DISPLAY=:1 xsetroot -solid royalblue3
2001-06-11 03:24:20 +00:00
fi
2001-06-11 05:47:51 +00:00
if test -z "$ONLY_SETUP"; then
2001-06-21 03:40:14 +00:00
METACITY_UISLAVE_DIR=./uislave METACITY_DISPLAY=:1 exec unst libtool --mode=execute $DEBUG ./metacity $OPTIONS
2001-06-11 05:47:51 +00:00
fi