summaryrefslogtreecommitdiff
path: root/src/run-metacity.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/run-metacity.sh')
-rwxr-xr-xsrc/run-metacity.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/run-metacity.sh b/src/run-metacity.sh
index 594cc0a..f1ed6af 100755
--- a/src/run-metacity.sh
+++ b/src/run-metacity.sh
@@ -2,6 +2,13 @@
if test -z "$SCREENS"; then
SCREENS=2
fi
+
+if test "$DEBUG" = none; then
+ DEBUG=
+elif test -z "$DEBUG"; then
+ DEBUG=gdb
+fi
+
Xnest :1 -scrns $SCREENS -geometry 270x270 &
-METACITY_UISLAVE_DIR=./uislave DISPLAY=:1 unst libtool --mode=execute gdb ./metacity
+METACITY_UISLAVE_DIR=./uislave DISPLAY=:1 unst libtool --mode=execute $DEBUG ./metacity
killall Xnest