Author: jjamrich
Date: 2011-05-23 10:24:22 -0400 (Mon, 23 May 2011)
New Revision: 22506
Modified:
modules/tests/metamer/trunk/ftest/vncsession.sh
Log:
Change vncsession.sh to support earlier defined DISPLAY
Modified: modules/tests/metamer/trunk/ftest/vncsession.sh
===================================================================
--- modules/tests/metamer/trunk/ftest/vncsession.sh 2011-05-23 13:49:42 UTC (rev 22505)
+++ modules/tests/metamer/trunk/ftest/vncsession.sh 2011-05-23 14:24:22 UTC (rev 22506)
@@ -1,4 +1,8 @@
#!/bin/bash
-vncserver :1
-nohup vncviewer :1 &>/dev/null &
-export DISPLAY=:1
+if [ "x$DISPLAY" == "x:0.0" ]; then
+ export DISPLAY=:1;
+ echo "Setting DISPLAY env var: DISPLAY=$DISPLAY"
+fi
+
+vncserver $DISPLAY -geometry 1280x900
+nohup vncviewer $DISPLAY &>/dev/null &
Show replies by date