Re: [dev] [wmii] Prevent losing of windows on crash/hang

2010-10-18 Thread Tom Kazimiers
Rob and Suraj, thanks for your answers. You're using exec, once that line is reached, bash replaces itself with wmii. Just use wmii instead, or even: Correct. Indeed, the exec was the problem, I did't know that this is what evec is about. wmii || xmessage Restart... that way (assuming

[dev] [wmii] Prevent losing of windows on crash/hang

2010-10-17 Thread Tom Kazimiers
Hi, from time to time my wmii 3 installation crashes. I have no idea why this happens, but it occurs once in a while. The log does not tell me anything about it. I use the hg-tip version and Suraj Kurapatis Ruby wmiirc. Besides that I use gdm as a display masager which starts the following script

Re: [dev] [wmii] Prevent losing of windows on crash/hang

2010-10-17 Thread Rob
while true; do        exec wmii        xmessage 'Restart the Window Manager?' \                 -buttons 'Yes:1,No:0' -center \                 -default 'Yes' -timeout 30    \         break done Unfortunately, that script does not prompt me if I want to restart wmii if if

Re: [dev] [wmii] Prevent losing of windows on crash/hang

2010-10-17 Thread Suraj Kurapati
On Sun, Oct 17, 2010 at 5:01 AM, Rob robpill...@gmail.com wrote: while true; do        exec wmii        xmessage 'Restart the Window Manager?' \                 -buttons 'Yes:1,No:0' -center \                 -default 'Yes' -timeout 30    \         break done You're using exec, once that