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.
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@cora.nwra.com Boulder, CO 80301 http://www.cora.nwra.com
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=1038834This 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@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
On 12/07/2013 01:54 PM, Mike Gabriel wrote:
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.
OKay, for now I'm going to just disable the xsession stuff completely in the Fedora packages and see how that goes.
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
Thanks, that's helpful. I'll try to think more about how we want to handle this long term later.
-- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division FAX: 303-415-9702 3380 Mitchell Lane orion@cora.nwra.com Boulder, CO 80301 http://www.cora.nwra.com
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
in x2goserver.spec within x2goserver.git I have packaged x2go-xsession
separately. However, the different startup logic of Xsession /
Xsession.d in RHEL gives me a little headache...
Can we have a chat so that we together figure our, how we could solve
this issue? I am currently considering adding the Xclient.d logic in
x2goruncommand. That is: x2goruncommand tries to detect if it runs on
something with /etc/X11/Xsession.d (or if it runs on Debian/UBuntu) or
if it lackes Xsession.d support (like on RHEL) and then follow
different Xsession startup logics.
Hmmm... (still not clear on this as you can probably read through the lines).
Mike
Do you think we can schedule a meeting today or tomorrow?
Greets, Mike
--
DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...