More robust, self contained, no longer needing an external file, can be

run from anywhere, and cleans up after itself.


SVN revision: 26343
devs/princeamd/enlightenment-0.17-elive
David Walter Seikel 16 years ago
parent cc0bc870a3
commit 00cb0f56dd
  1. 2
      gdb.txt
  2. 9
      xnest.sh

@ -1,2 +0,0 @@
run
bt

@ -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

Loading…
Cancel
Save