3

I use, and love, GNOME Do. Sometimes, though, it crashes and I have to re-run it from the menu. Is it possible to set up my GNOME session to automatically try to respawn Do?

I realize there are some caveats contemplating this - if my system gets into a state where Do cannot run at all, this would create an infinite loop of respawning, crashing, and respawning again, but in my experience Do crashes just enough for it to be slightly annoying, and never right after I restart it manually.

If someone can make a case for this being a bad idea, I'd consider that a good answer as well.

1 Answers1

2

You should be able to start it with a bash script that's basically "while(1){gnome-do}", ensuring that when gnome-do crashes, it gets run again. As long as gnome-do is run synchronously, it should work just fine. even if the system gets into a state where it can't be launched successfully, the impact would be small. If you want to ensure that even that is not a problem, insert a command using zenity. This would notify you that there was a problem, and require you to hit enter to start gnome-do again.

create a script with the following and launch it from the "Startup Applications" application found under the System Preferences menu.

while true
do
  gnome-do
  zenity --info --text="gnome-do crashed ... press enter to restart"
done
Nerdfest
  • 4,658