I have struggled with this problem for three days and I have tried many ways to solve it but not successful yet. I hope you guys can help me...
I have an GUI application. I want to start this application automatically. And when it goes down or closed unexpectedly, I want to reopen this application.
I tried to use upstart script, however although there is no problem about services with upstart, GUI application is not starting with upstart script. It says cannot connect X server.
Should I add or change some settings to open with upstart or is there any way to open GUI application automatically when unexpected exit or shut down occurs (not just once after login I mean not with Startup) ?