You are not logged in.
hi,
i've done this script that automatically reloads kwin, kicker and kdesktop if they crash. I have it in ~/.kde/Autostart
#!/bin/bash
while [ "1" ]; do
if ! (ps -A|grep -o kwin>/dev/null); then
let KWINDEAD=$KWINDEAD+1
if [ $KWINDEAD == "4" ]; then
kwin &
fi
else
KWINDEAD="0"
fi
if ! (ps -A|grep kdesktop>/dev/null); then
let KDESKTOPDEAD=$KDESKTOPDEAD+1
echo "KDESKTOP $KDESKTOPDEAD"
if [ $KDESKTOPDEAD == "4" ]; then
kdesktop &
fi
else
KDESKTOPDEAD="0"
fi
if ! (ps -A|grep kicker>/dev/null); then
let KICKERDEAD=$KICKERDEAD+1
if [ $KICKERDEAD == "4" ]; then
kicker &
fi
else
KICKERDEAD="0"
fi
sleep 10
done
i made it cause sometimes they crash (or you may fail pointing with xkill), so i found it comfortable.
my questions are:
1 - can it be done within kde configuration?
2 - if not: i made it to reload the elements after 30-40 seconds, cause if not in shutdown process it may reload them, so the shutdown doesnt takes very long cause they keep reloading when they should stop. Is there a dcop option to tell me if kde is shutting down or not, so that i can avoid the 30-40 seconds delay and make them reload quicker only if the system is not shutding down?
Offline