1829579 Members
4589 Online
109992 Solutions
New Discussion

CDE Session Exit problem

 
N Wright
New Member

CDE Session Exit problem

I have a modified Xsession script, which exec's a local application script, which does :

1) start background application processes
2) starts a CDE session via a background script (ttsession,dtappgather & exec dtsession)
3) waits for 2) to exit, then stops processes 1).

When the user exits the session using the Panel Exit button, it appears that the initial Xsession process (now running our script) is terminated. Obviously, I was expecting the dtsession to exit rather than the dtsession process (2 above).

It appears that the exit button performs an ExitSession action, that transmits an Xsession_Exit ToolTalk message, but I don't know what receives that message, or what the response is. Can anyone enlighten me?
2 REPLIES 2
Alex Glennie
Honored Contributor

Re: CDE Session Exit problem

In answer to your question - No

But could you not just get user to login to CDE

create a sessionetc script to start background application (1)

create a sessionexit script to check if (1) still running and terminate it.

fyi

You can create a script in ~/.dt/sessions called sessionetc

The script is executed at CDE startup, and in it, you can start up all those
cde-unaware apps that cde can't start up itself.
If necessary, you can also use ~/.dt/sessions/sessionexit to execute commands at
CDE exit time. source http://www.math.unizh.ch/locinfo/cde.html

N Wright
New Member

Re: CDE Session Exit problem

Thanks Alex. I can't get rid of the modified Xsession, as it handles non-CDE logins too, but I have tried the session{etc,exit} to handle the background processs under CDE and it seems to work. I just wish I knew why the modified Xsession process gets killed rather than the dtsession.