From: John Joyce Date: 2007-09-16T23:40:18+09:00 Subject: Re: loop a program on exit? On Sep 16, 2007, at 12:51 AM, Michael Linfield wrote: > i want to have a program restart when its closed via the X button > on the > window / terminal > > any ideas? > -- > Posted via http://www.ruby-forum.com/. > You're going into very platform specific territory there. Potentially malware like behavior. Normally, the paradigm a user expects is that a GUI widget functions the same as in other applications. If all you want is to have an application not quit via that GUI widget, disable that widget, and visually gray it out. If you want a restart button, make one. Don't break expected behaviors like that. If you want a daemon process, you probably don't want it running in a GUI.