2009-06-15 20:20:14 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# This script starts LyX, and restarts LyX if it is closed
|
2009-06-15 20:20:22 +00:00
|
|
|
# it logs all output, including backtraces to development/keystest/out/GDB
|
2009-06-15 20:20:14 +00:00
|
|
|
|
|
|
|
#rename other windows to avoid confusion.
|
|
|
|
wmctrl -N __renamed__ -r lyx
|
|
|
|
wmctrl -N __renamed__ -r lyx
|
|
|
|
wmctrl -N __renamed__ -r lyx
|
|
|
|
wmctrl -N __renamed__ -r lyx
|
|
|
|
|
|
|
|
while true
|
|
|
|
do
|
|
|
|
( (echo SECONDS: `date +%s`
|
|
|
|
(echo "run
|
2009-06-15 20:20:20 +00:00
|
|
|
bt" ; yes q) | gdb src/lyx 2>&1) | strings| tee -a development/keystest/out/GDB)
|
2009-06-15 20:20:14 +00:00
|
|
|
done
|