[X2Go-Dev] Questions about Xsession/Xsession.d handling

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Sat Dec 7 21:54:10 CET 2013


Hi Orion,

On  Sa 07 Dez 2013 21:35:42 CET, Orion Poplawski wrote:

> In the Fedora x2goserver package, I've packaged the  
> /etc/x2go/Xsession* files as part of the main package.  This is  
> breaking things - see  
> https://bugzilla.redhat.com/show_bug.cgi?id=1038834
>
> This seems to be the crux of the matter, from x2goruncommand:
>
>         x2gofeature X2GO_XSESSION &>/dev/null && [  
> "x$X2GO_SESS_TYPE" = "xD" ] && {
>                 STARTUP="$cmd$args"
>                 $X2GO_LIB_PATH/x2gosyslog "$0" "notice" "launching  
> session with Xsession-x2go mechanism, using STARTUP=\"$STARTUP\""
>                 STARTUP="/usr/bin/env  
> LD_LIBRARY_PATH=${LD_LIBRARY_PATH} ${STARTUP}" /etc/x2go/Xsession
>         } || {
>                 $X2GO_LIB_PATH/x2gosyslog "$0" "debug" "executing  
> command \"$cmd$args\"..."
>                 $EXEC_WRAPPER $cmd$args
>         }
>
>
> So, with the X2GO_XSESSION feature installed (which it is), it runs  
> /etc/x2go/Xsession.  This script exits successfully and so $cmd$args  
> is never executed.
>
> It looks like something in Xsession is supposed to run $STARTUP, but  
> nothing is configured to do so.  Are users expected to create their  
> own script to do this?
>
> Part of the confusion for me is that there is no /etc/X11/Xsession.d  
> in Fedora, so I'm not sure what is meant to be there.

Ah well. Seems like that part of X2Go Server is highly Debianic  
then... Sorry for that.

The /etc/X11/Xsession.d is a place on Debian systems where other  
package (maintainers) can drop in code that should be executed with  
every Xsession startup.

I attach a tarball of all those script on my Debian wheezy system to  
this mail to give you an impression of what is going on in Debian's  
/etc/X11/Xsession.d.

The last script being executed looks like this:

"""
# $Id: 99x11-common_start 305 2005-07-03 18:51:43Z dnusinow $

# This file is sourced by Xsession(5), not executed.

exec $STARTUP

# vim:set ai et sts=2 sw=2 tw=80:
"""

Greets,
Mike

-- 

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Xsession.d.tar.gz
Type: application/x-gzip
Size: 5196 bytes
Desc: not available
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20131207/8b0f02f7/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digitale PGP-Signatur
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20131207/8b0f02f7/attachment.pgp>


More information about the x2go-dev mailing list