On Jan 27 at 05:42, Larry W. Virden spoke:

> 
> From: Hanspeter Roth <[EMAIL PROTECTED]>
> 
> > can a TK application detach from X11 without terminating
> > immediately?
> 
> Can you tell us more about what it is you are wanting to do?  Are you 
> looking for a way to 'gracefully' shut down during the loss of the X
> server?
> 
> The problem is this - the only way the GUI has to display things on an
> X Window system is via the X11 server - once it is gone, there's no
> way to display anything.

I have a Tk (expectk) application that has some background tasks.
When one of this tasks is running the user can await it's completion
and then launch another task.
But he might also decide that there is nothing else to be done
except for waiting the completion of the current task and thereafter
exit the application.
I'd like to offer the option for the GUI to detach from X and become
some kind of daemon process allowing the user to logout off his X
session and leaving the station. No more display to X is required.
Only the background task already begun should be allowed to safely
complete.

While in Tk there is probably processing of some event loop. Can
one exit this event loop and revert to `normal' execution as
before entering the event loop?

> What you might be able to do is to set up a multi-tier sort of arrangement.
> The first layer would be tcl only - it would start up.  It might then start
> a child process which did a package require on Tk to start up the GUI.

Ok. I consider this approach.

-Hanspeter


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user

Reply via email to