Hi all,
I've managed to fix gnome-flashback on Ubuntu 15.10+ (actually tested only on 16.04).
Patches attached.
Summary:
1. gnome-session was crashing due to bug in gnome-session.
The solution was to disable display configuration by gnome-flashback:
gsettings set org.gnome.gnome-flashback display-config false
2. environment set by x2goruncommnd was insufficient for gnome-flashback and upstart to work.
Following variables had to be added: XDG_CURRENT_DESKTOP and BASESESSION
3. In normal sessions Xsession is executed with parameter, new variable XSESSION_PARAM was introduced and passed to Xsession
4. Variable DESKTOP_SESSION had to be updated to gnome-flashback-metacity
5. gnome-session now requires --disable-acceleration-check parameter
6. PATH had to be synced with /etc/environment for upstart to work
7. Initial display configuration was fixed by installing sane default in ~/.config/monitors.xml on first run
8. On the way, formatting of x2gorunner was fixed
9. New dependencies (libgles{1,2}-mesa) had to be introduced to libnx-x11-6.
control-center and probably other applications based clutter/GL, won't work otherwise.
Regards