Enlightenment CVS committal Author : onefang Project : e17 Module : apps/e
Dir : e17/apps/e Modified Files: xnest.sh Removed Files: gdb.txt Log Message: More robust, self contained, no longer needing an external file, can be run from anywhere, and cleans up after itself. =================================================================== RCS file: /cvs/e/e17/apps/e/xnest.sh,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- xnest.sh 2 Oct 2006 08:36:27 -0000 1.5 +++ xnest.sh 4 Oct 2006 11:31:46 -0000 1.6 @@ -5,10 +5,12 @@ main=$DISPLAY display=" -display :1" +tmp='mktemp' || exit 1 +echo -e "run\nbt\nq\ny" > $tmp case "$@" in - "") action="gdb -x gdb.txt" ; main=":1" ; display="" ;; - "-b") action="gdb -x gdb.txt" ; main=":1" ; display="" ;; + "") action="gdb -x $tmp" ; main=":1" ; display="" ;; + "-b") action="gdb -x $tmp" ; main=":1" ; display="" ;; "-d") action="ddd -display $main" ; display="" ;; "-e") action="" ;; "-g") action="gdb" ; main=":1" ; display="" ;; @@ -42,3 +44,6 @@ sleep 2 # Someone reported that it starts E before X has started properly. DISPLAY=$main; $action enlightenment $display + +rm -f $tmp +killall -TERM Xnest ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs