X2GO与Ubuntu Mate / Xfce 16.04无法启动

带有Ubuntu Mate 16.04的X2GO无法启动~/.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... 

要解决~/.profile设置的问题,请设置XDG_DATA_DIRSGSETTINGS_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 

很好的主意! 我也有这个问题。 如果你想让x2go with Mate为所有用户启用,我会把它

 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 

进入/etc/profile而不是。 玩得开心!

在xfce4上同样的事情,但我没有相同的错误消息:更多的错误消息:

  (polkit-gnome-authentication-agent-1:28411): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed (polkit-gnome-authentication-agent-1:28411): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed (polkit-gnome-authentication-agent-1:28411): Gdk-CRITICAL **: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF (pixbuf)' failed (polkit-gnome-authentication-agent-1:28411): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed (polkit-gnome-authentication-agent-1:28411): Gtk-WARNING **: Error loading theme icon 'gtk-cancel' for stock: Unrecognized image file format (polkit-gnome-authentication-agent-1:28411): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: L'icône « image-missing » n'est pas présente dans le thème elementary-xfce-dark (polkit-gnome-authentication-agent-1:28411): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed (polkit-gnome-authentication-agent-1:28411): Gdk-CRITICAL **: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF (pixbuf)' failed (polkit-gnome-authentication-agent-1:28411): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed (polkit-gnome-authentication-agent-1:28411): Gtk-WARNING **: Error loading theme icon 'gtk-cancel' for stock: Unrecognized image file format (polkit-gnome-authentication-agent-1:28411): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: L'icône « image-missing » n'est pas présente dans le thème elementary-xfce-dark (polkit-gnome-authentication-agent-1:28411): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed (polkit-gnome-authentication-agent-1:28411): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed (polkit-gnome-authentication-agent-1:28411): Gdk-CRITICAL **: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF (pixbuf)' failed 

现在只需在post中添加2行并将配合更改为xfce4即可