Today at 1:44am, ryu said:

> Well heres one way to atleast get around all X apps being killed.
>
> Don't have exec blackbox as the last call in .xinitrc (or equivalent).
> What I do is have the 'last call' exec a script that is just an infinite
> loop of long sleeps.  By doing this when blackbox crashes, it doesn't
> take X with it.  You can then just start another blackbox.
>
> But now, when you want to exit X (gracefully) you will have to kill that
> sleep script instead.  I've made my 'sleep script' output its pid to a
> tmp file, and I made my exit look at that tmp file and kill the process
> it contains.
>
> Well, that's how I do it anyway.
>

I do it like this (in my .xinitrc):

#!/bin/bash
until blackbox;do :;done

This quits when blackbox quits cleanly (using the [exit] menu option).
Otherwise it will restart Blackbox, and you will not lose your X-session.


-- 
 /"\  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  /"\
 \ /   ASCII Ribbon Campaign       Wilbert Berendsen             \ /
  X   - NO HTML/RTF in e-mail      http://www.xs4all.nl/~wbsoft   X
 / \  - NO MSWord docs in e-mail   http://linuxathome.nl         / \

Reply via email to