Hi,

On Fr 24 Feb 2012 14:21:55 CET  wrote:

Hi All:

Is there a way to call a logout script (i.e., one that is specific to each user upon ending a session)? In Ubuntu Server 10.4 we've tried various things including .bash_logout and /etc/gdm/PostSession/Default either performing a command or calling .bash_logout.

Approach one (for system-wide plugging-in of custom X2Go extensions):
Install the package x2goserver-extensions (normally gets installed by default).

Place any script you like (best practice: via a .deb package) into any of the folders:

/usr/lib/x2go/extensions/pre-start.d
/usr/lib/x2go/extensions/post-resume.d
/usr/lib/x2go/extensions/post-suspend.d
/usr/lib/x2go/extensions/pre-runcommand.d
/usr/lib/x2go/extensions/pre-terminate.d
/usr/lib/x2go/extensions/fail-start.d
/usr/lib/x2go/extensions/pre-suspend.d
/usr/lib/x2go/extensions/fail-runcommand.d
/usr/lib/x2go/extensions/fail-suspend.d
/usr/lib/x2go/extensions/post-start.d
/usr/lib/x2go/extensions/post-runcommand.d
/usr/lib/x2go/extensions/fail-resume.d
/usr/lib/x2go/extensions/post-terminate.d
/usr/lib/x2go/extensions/pre-resume.d
/usr/lib/x2go/extensions/fail-terminate.d

Approach two (developers, please take note of this commit!):
http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=a21e0dc286c89e94790fe13de7a083cf8be5f5b9

The "/etc/gdm/PostSession/Default" works if we log in directly, so assume this has something to do with xsession(?) and hope there is a way in an x2go session where when the user logs out, a script gets called in the background.

The named GDM script is out of our reach when running X2Go sessions. :-(, it is not related to .Xsession calls.

Mike

--

DAS-NETZWERKTEAM
mike gabriel, dorfstr. 27, 24245 barmissen
fon: +49 (4302) 281418, fax: +49 (4302) 281419

GnuPG Key ID 0xB588399B
mail: [email protected], http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb

Attachment: pgpj6656L85Nb.pgp
Description: Digitale PGP-Unterschrift

_______________________________________________
X2Go-Dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/x2go-dev

Reply via email to