summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xxnest.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/xnest.sh b/xnest.sh
index 0f2ca5a..5d5a019 100755
--- a/xnest.sh
+++ b/xnest.sh
@@ -11,14 +11,14 @@ tmp=`mktemp` || exit 1
11echo -e "run\nbt\nq\ny" > $tmp 11echo -e "run\nbt\nq\ny" > $tmp
12 12
13case "$1" in 13case "$1" in
14 "") action="gdb -x $tmp --args" ; main=$disp_num ;; 14 "") action="gdb -x $tmp --args" ; main=$disp_num ;;
15 "-b") action="gdb -x $tmp --args" ; main=$disp_num ;; 15 "-b") action="gdb -x $tmp --args" ; main=$disp_num ;;
16 "-c") action="cgdb" ; main=$disp_num ;; 16 "-c") action="cgdb" ; main=$disp_num ;;
17 "-d") action="ddd -display $main --args" ;; 17 "-d") action="ddd -display $main --args" ;;
18 "-e") action="" ; e_args="-display $disp_num" ;; 18 "-e") action="" ; e_args="-display $disp_num" ;;
19 "-g") action="gdb --args" ; main=$disp_num ;; 19 "-g") action="gdb --args" ; main=$disp_num ;;
20 "-l") action="valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --log-file=valgrind_log" ;; 20 "-l") action="valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --log-file=valgrind_log" ; main=$disp_num ;;
21 "-m") action="valgrind --tool=memcheck --log-file=valgrind_log" ;; 21 "-m") action="valgrind --tool=memcheck --log-file=valgrind_log" ; main=$disp_num ;;
22 "-p") action="memprof --display=$main" ; main=$disp_num ;; 22 "-p") action="memprof --display=$main" ; main=$disp_num ;;
23 "-r") action="memprof_raster --display=$main" ; main=$disp_num ;; 23 "-r") action="memprof_raster --display=$main" ; main=$disp_num ;;
24 "-s") action="strace -F -o strace_log" ;; 24 "-s") action="strace -F -o strace_log" ;;
@@ -48,6 +48,7 @@ Xnest $disp_num -ac &
48 48
49sleep 2 # Someone reported that it starts E before X has started properly. 49sleep 2 # Someone reported that it starts E before X has started properly.
50 50
51echo "export DISPLAY=$main; export E_START="enlightenment_start"; $action enlightenment $e_args"
51export DISPLAY=$main; export E_START="enlightenment_start"; $action enlightenment $e_args 52export DISPLAY=$main; export E_START="enlightenment_start"; $action enlightenment $e_args
52 53
53rm -f $tmp 54rm -f $tmp