LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-26-2007, 08:57 PM   #1
azdruid
LQ Newbie
 
Registered: Jan 2005
Posts: 14

Rep: Reputation: 0
X application persistence over X crash: Is It Possible?


As a curious fellow who is interested in system stability, I would like to know Is There A Way to keep open X clients running when the X server dies? Then, upon restart of X, Everything Just Comes Right Back.

I've never seen this done before, but I'm certainly curious to know if it is possible somehow. Perhaps something extra required client-side? (upon disconnect, auto save-state and reconnect?)

I appreciate any information on the matter, thanks.
 
Old 07-27-2007, 03:55 PM   #2
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
kde can do this.
beyond just opening the apps though its up to the individual apps to know what they were doing.

the problem is if an application is causing the crash then restarting it ... well causes another crash ad infinitum.
 
Old 07-27-2007, 09:04 PM   #3
azdruid
LQ Newbie
 
Registered: Jan 2005
Posts: 14

Original Poster
Rep: Reputation: 0
What KDE can do is keep list of What Programs Happen To Be Running, and then just exec everything on that list upon your login.

But! Let's say I have an OPEN UNSAVED DOCUMENT in OpenOffice. X crashes, I lose my work.

I find this very unsatisfactory.

My experience with X crashes so far very often is related to vterminal/X switching, with the Nvidia drivers. Certainly there are bugs in Nvidia's driver, but certainly there's no better alternative. I like to use my hardware in the capacity which I paid for.

Alas, no definitive answer yet. Is it, in fact, the individual client's responsibility to save its state in case of an X crash? Or is there a more clever way?
 
Old 08-01-2007, 11:34 AM   #4
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
Use (x)emacs.
(A) It auto-saves; (trivially) you won't lose work.
(B) After you eval gnuserv, you can (in an X session) execute gnuclient to attach to the running emacs, where you'll find all the buffers open and in the state you last touched them. I use this to continue across network glitches, which terminate my ssh session and the X11 forwarding across it. I start the main xemacs process as follows,
Code:
DISPLAY= screen -d -m xemacs -unmapped -f gnuserv-start
The first is sh/bash syntax to unsetenv DISPLAY, so that the xemacs will survive loss of the X server. I run an unmapped xemacs inside screen (also unmapped) to make it immune to hangups.

Well, that's just an individual app, but highly useful to me. A more generic approach might be vncserver, which starts Xvnc. "It is based on a
standard X server, but it has a "virtual" screen rather than a physical
one. X applications display themselves on it as if it were a normal X
display, but they can only be accessed via a VNC viewer
".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Live CD Persistence ArthurDent Ubuntu 4 10-29-2006 03:30 PM
Application crash Getafix Linux - Newbie 6 10-08-2004 03:03 PM
Neural network persistence Dark_Helmet Programming 5 09-20-2004 04:18 PM
Redhat startup application crash mgr Linux - Newbie 3 04-15-2004 03:53 AM
How to debug an X application crash pbhj Linux - Software 1 06-12-2003 10:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration