Re: Closing a Gnome Session Remotely
- From: "Anthony E. Greene" <agreene pobox com>
- To: gnome-list gnome org
- Subject: Re: Closing a Gnome Session Remotely
- Date: Sun, 13 Feb 2000 01:17:43 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Harold Campbell wrote:
>
> "Anthony E. Greene" wrote:
> >
> > Loban Rahman wrote:
> >
> > > I want to be able to close a gnome-session remotely. Is there way to do this
> > > cleanly, so that the session can be saved and all?
> >
> > save-session --kill
> >
>
> One would think so, but it doesn't actually work. It complains about not
> being able to contact the session manager. It wants the information in
> the SESSION_MANAGER variable that the session has in it's environment.
> You have to dig the information out of .xsession-errors first to make
> the above work. Rather icky.
Assuming a Linux system, how about having /etc/xdm/GiveConsole write the
SESSION_MANAGER variable to $HOME/.SESSION_MANAGER so it's available to a
script that could be run remotely to close the session.
I do this with the $DISPLAY variable so some other scripts I run work from
an Xterminal box as well as my primary box.
TakeConsole could delete the file at logout.
--
Anthony E. Greene <agreene@pobox.com>
Homepage & PGP Key <http://www.pobox.com/~agreene/>
If it's too good to be true, it's probably Linux.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v0.9.8 (GNU/Linux)
Comment: Gnome PGP version 0.4
iD8DBQE4pffZpCpg3WyUI50RAgYIAJ4tkTElmxBkjdTNSLBEt+KBjSoshgCg63xp
HOfF8zY+apfS0WpNoGPY6w8=
=lE8m
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]