Hi all x2goserver-4.0.1.18, Gentoo I'm trying to run /etc/x2go/Xsession to centralize environment configuration, esp. via Xresources, loading profile etc. I currently am not able to find any other way than hacking x2goruncommand in the following way. Is there a better way? diff --git a/x2goserver/bin/x2goruncommand b/x2goserver/bin/x2goruncommand index e7e20e2..f62ed12 100755 --- a/x2goserver/bin/x2goruncommand +++ b/x2goserver/bin/x2goruncommand @@ -288,11 +288,13 @@ if [ "$EXEC" != "" ] && [ -x "$EXEC" ]; then x2gosetkeyboard >/dev/null 2>/dev/null & + STARTUP="$cmd$args" + "$X2GO_LIB_PATH/x2gosyslog" "$0" "notice" "launching session with Xsession-x2go mechanism, using STARTUP=\"$STARTUP\"" + if x2gofeature X2GO_XSESSION &>/dev/null && [ "x$X2GO_SESS_TYPE" = "xD" ]; then - STARTUP="$cmd$args" - "$X2GO_LIB_PATH/x2gosyslog" "$0" "notice" "launching session with Xsession-x2go mechanism, using STARTUP=\"$STARTUP\"" XSESSION_EXEC="$cmd" STARTUP="/usr/bin/env LD_LIBRARY_PATH=${LD_LIBRARY_PATH} ${STARTUP}" /etc/x2go/Xsession else + XSESSION_EXEC="$cmd" /etc/x2go/Xsession "$X2GO_LIB_PATH/x2gosyslog" "$0" "debug" "executing command \"$cmd$args\"..." # This is gonna be a nasty trick now...