[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RP] neat trick
From: |
twb |
Subject: |
[RP] neat trick |
Date: |
Fri Apr 25 04:20:01 2003 |
I worked out a neat trick. Y'all probably know it, it's so simple.
Problem: Occasionally RP dies or goes funny, right. Your only option
is to kill X and xinit again.
Trick:
Make a bash script:
#!/bin/bash
$@; exec $0 $@
Then edit ~/.xinitrc :
change
exec ratpoison
to
exec keepalive ratpoison
Now, if RP dies keepalive will restart it; if RP stops receiving
input, you can switch to a vt and `killall ratpoison`.
The end result is that X won't die when RP does.
gnome-sessiond must have a lot of bloat if a newbie can do a one-liner, eh ;)
-Trent