From 00cb0f56ddcc181ee2e200568edb88736258e30f Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 4 Oct 2006 11:31:46 +0000 Subject: [PATCH] More robust, self contained, no longer needing an external file, can be run from anywhere, and cleans up after itself. SVN revision: 26343 --- gdb.txt | 2 -- xnest.sh | 9 +++++++-- 2 files changed, 7 insertions(+), 4 deletions(-) delete mode 100644 gdb.txt diff --git a/gdb.txt b/gdb.txt deleted file mode 100644 index 26478764e..000000000 --- a/gdb.txt +++ /dev/null @@ -1,2 +0,0 @@ -run -bt diff --git a/xnest.sh b/xnest.sh index 38a3de513..c8f3500bc 100755 --- a/xnest.sh +++ b/xnest.sh @@ -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 @@ Xnest :1 -ac & sleep 2 # Someone reported that it starts E before X has started properly. DISPLAY=$main; $action enlightenment $display + +rm -f $tmp +killall -TERM Xnest