X2GO with Ubuntu Mate/Xfce 16.04 fails to start
X2GO with Ubuntu Mate 16.04 fails to start with the following error message in ~/.xsession-x2go-errors
XSession-x2go: X session started for testuser at Fri Apr 26 22:30:23 EDT 2016
localuser:testuser being added to access control list
/etc/x2go/Xsession: 3: [: x: unexpected operator
mate-session[3684]: GLib-GIO-CRITICAL: g_settings_schema_source_lookup: assertion 'source != NULL' failed
mate-session[3684]: GLib-GIO-ERROR: No GSettings schemas are installed on the system
aborting...
Solution 1:
To work around the problem set in ~/.profile
the system default value for XDG_DATA_DIRS
and to GSETTINGS_SCHEMA_DIR
.
export GSETTINGS_SCHEMA_DIR=/usr/share/mate:/usr/share/mate:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
export XDG_DATA_DIRS=/usr/share/mate:/usr/share/mate:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
Solution 2:
great idea! I had this issue too. If you want to have x2go with Mate working for all users enabled I would put this
export GSETTINGS_SCHEMA_DIR=/usr/share/mate:/usr/share/mate:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
export XDG_DATA_DIRS=/usr/share/mate:/usr/share/mate:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
into /etc/profile
instead. Have fun!