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.

Big thanks to Alberts Muktupāvels and Alkis Georgopoulos (https://mail.gnome.org/archives/gnome-flashback-list/2015-December/msg00014.html)

Regards


On Sun, Dec 13, 2015 at 8:11 PM, Eugene San <eugenesan@gmail.com> wrote:
Hi all.
I am trying to fix gnome sessions (gnome flashback) on Ubuntu 15.10+.

I started with fixing session name (flashback -> flashback-metacity) and disabling acceleration check (--disable-acceleration-check), but the sessions are still broken, they start as a black screen and crashes after few minutes.

Logs are inconclusive.
I guess services are failing to start and the problem
is related to recent systemd-user-init and upstart mixture for sessions start-up.

Can anyone educate me how exactly the sessions are starting in recent releases and where the problem might be?

Thanks.