trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: July 2011

Re: [trinity-users] [solved] how to properly close a trinity session from tty?

From: Nicolas Bercher <nbercher@...>
Date: Sat, 02 Jul 2011 16:51:56 +0200
On 01/07/2011 16:44, Christopher J Kleinschmidt wrote:
> I think that individual dcop services are started per user, (multiple
> per user is even possible). there should be a way to specify which
> dcop to send a signal on.   There is, look at the man page for dcop,
> there is options like "--all-sessions" and "--all-users", also to be
> more selective as to where to send the signal there is "--user" and
> "--session".  "--list-sessions" should help you find the combo you
> need. If you need help with that, I'll have some time later today to
> look closer.

I've asked for the session id for my username and got two different ones:

  .DCOPserver_localhost__0
  .DCOPserver_localhost__1

I tried the first one from the tty1 and it did the job really well:

   dcop --session .DCOPserver_localhost__1 --user <mylogin> \
   ksmserver default logout 0 -1 -1

I went back on tty7 to see the kdm session closing (I've got a large number of kosonle, 
kpdf, etc. windows openend, so it actually takes a while to save & close the session).

Because having two dcop sessions worried me a little I rebooted to check if this could be 
a lost session handle, but after rebooting, I still have two sessions for my user.  I 
don't really understand if this is normal or not and what the second session is for.

Maybe next time I'll halt the machine, I'll try to logout using the second session 
handler, just to because I'm curious.


Thanks a lot for your help.
I was on the way to read the dcop man page but you suggested the good options before I 
even type man ...

Nicolas