1

Im tired that everytime my dock (i use docky) crash i have to manual reopen it.

There is a way for auto restart docky everytime it crash?

I mean something that can auto reopen the app when it crash...

ps i'm a newby non english on xubuntu

Ufan
  • 21
  • 1
  • 2

1 Answers1

6

Open your terminal and type as

gedit autostart.sh

then paste this code as it as

#!/bin/bash

while true
do
if [ ! `pgrep docky` ] ; then
/usr/bin/autorestart1.sh
fi
sleep 30
done

save it & close.

Then again in the terminal type as

sudo gedit /usr/bin/autostart1.sh

and paste

cd /usr/bin/
docky

save & close.

thats it now onwards. your application will be autostart after the crash,:)

Credit goes to Ubuntuforums

Raja G
  • 105,327
  • 107
  • 262
  • 331