X2GO com Ubuntu Mate 16.04 falha ao iniciar com a seguinte mensagem de erro em~/.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...
Responder1
Para contornar o problema definido no ~/.profile
valor padrão do sistema para XDG_DATA_DIRS
e para 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
Responder2
boa ideia! Eu também tive esse problema. Se você quiser que o x2go com Mate funcione para todos os usuários habilitados eu colocaria isso
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
em /etc/profile
vez disso. Divirta-se!
Responder3
a mesma coisa no xfce4, mas não recebi a mesma mensagem de erro: mais muitas mensagens de erro como:
(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
agora está funcionando apenas adicionando as 2 linhas da sua postagem e mudando o mate para xfce4