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

Orion Poplawski orion at cora.nwra.com
Sat Dec 7 21:35:42 CET 2013


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.

Xsession-x2go README
====================

With X2Go it is possible to use Xsession config files of your
local X11 system.

By default most files and folders related to Xsession config
are symlinks to the corresponding file/folder in /etc/X11.

If you want to customize your X2Go server's Xsession setup
copy the corresponding files from /etc/X11 to /etc/x2go and
adapt the setup to your needs.

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion at cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com




More information about the x2go-dev mailing list