XFCE works, but not Unity. I see the following in xinit.log after choosing the Unity profile: > Running /opt/thinlinc/etc/xstartup.d/30-tl-xdg-user-dirs (Translating standard folders) > Running /opt/thinlinc/etc/xstartup.d/40-tl-mount-localdrives (Mounting local drives) > Running /opt/thinlinc/etc/xstartup.d/41-tl-lp-redir-launch (Setting up printer port redirection) > Running /opt/thinlinc/etc/xstartup.d/43-tl-pulseaudio-launch (Starting session PulseAudio server) > W: [pulseaudio] main.c: Couldn't canonicalize binary path, cannot self execute. > Session PulseAudio server started > Running /opt/thinlinc/etc/xstartup.d/50-tl-wait-smartcard (Waiting for smart card connection) > Stopping initial window manager... > Done. > Executing profile: unity > Using XDG session: ubuntu > Executing XDG session command: /usr/lib/gnome-session/run-systemd-session ubuntu-session.target > Profile command exited with exit code 0 > Running /opt/thinlinc/etc/xlogout.d/tl-kdestroy.sh > Running /opt/thinlinc/etc/xlogout.d/tl-umount-localdrives > tl-xinit: client terminated and returned 0 > tl-while-x11: lost Xserver connection, terminating child 18401 ... > tl-while-x11: lost Xserver connection, terminating child 18395 ... > E: [tunnel-sink] module-tunnel-sink-new.c: Stream failed. > tl-xinit: deleting ../1.1489062221.ended > tl-xinit: Session terminated. Exiting.
LXDE works, but GNOME seems to have a similar problem to Unity. No hints in xinit log however.
This seems to be a variation of bug 5950 as Gnome seems to start fine if we force our environment upon systemd and d-bus. Unity has more issues it seems as it starts up, then dies again. However running "unity" manually works.
We'll put up a platform specific note with information that this is broken, then move the bug to PoolTodo to do more digging and find more workarounds and ideas for a long term solution.
(In reply to comment #1) > LXDE works, but GNOME seems to have a similar problem to Unity. No hints in > xinit log however. Both GNOME Shell and GNOME Classic have started working after installing updates on the machine.
Tested Cinnamon, KDE and Mate as well on Ubuntu 17.04, none of them have the same problem Unity does and starts without issues.
Platform Specific Note added for Unity: https://www.cendio.com/thinlinc/docs/platforms/ubuntu This bug should be moved to the milestone PoolTodo after verification of the PSN is done.
(In reply to comment #6) > Platform Specific Note added for Unity: > > https://www.cendio.com/thinlinc/docs/platforms/ubuntu Tested on Ubuntu 17.04 Desktop (x86_64) nightly, installed today. ☒ Unity ☑ LXDE ☑ XFCE ☑ KDE ☑ GNOME ☑ GNOME Classic Note reads fine and the recommended alternative desktops will start. > This bug should be moved to the milestone PoolTodo after verification of the > PSN is done. Aye.
With regards to the original problem, I'm guessing that something isn't transfering the display properly to the unity startup script. I'm seeing several "Couldn't open display :0" errors in system logs. > Mar 20 03:14:03 ubuntu bamfdaemon[9123]: cannot open display: :0 > Mar 20 03:14:03 ubuntu indicator-print[9118]: cannot open display: :0 > Mar 20 03:14:03 ubuntu unknown[9231]: cannot open display: :0 > Mar 20 03:14:03 ubuntu compiz[9245]: Invalid MIT-MAGIC-COOKIE-1 key/usr/bin/compiz (core) - Fatal: Couldn't open display :0 > Mar 20 03:14:03 ubuntu indicator-print[9247]: cannot open display: :0 > Mar 20 03:14:03 ubuntu bamfdaemon[9253]: cannot open display: :0 > Mar 20 03:14:03 ubuntu unity-panel-ser[9287]: cannot open display: :0 > Mar 20 03:14:04 ubuntu bamfdaemon[9312]: cannot open display: :0 > Mar 20 03:14:04 ubuntu indicator-print[9315]: cannot open display: :0 > Mar 20 03:14:04 ubuntu compiz[9339]: Invalid MIT-MAGIC-COOKIE-1 key/usr/bin/compiz (core) - Fatal: Couldn't open display :0 > Mar 20 03:14:04 ubuntu unity-panel-ser[9351]: cannot open display: :0 > Mar 20 03:14:04 ubuntu bamfdaemon[9362]: cannot open display: :0 > Mar 20 03:14:04 ubuntu indicator-print[9364]: cannot open display: :0 > Mar 20 03:14:04 ubuntu indicator-print[9396]: cannot open display: :0 > Mar 20 03:14:04 ubuntu unknown[9395]: cannot open display: :0 > Mar 20 03:14:04 ubuntu compiz[9416]: Invalid MIT-MAGIC-COOKIE-1 key/usr/bin/compiz (core) - Fatal: Couldn't open display :0 > Mar 20 03:14:04 ubuntu unity-panel-ser[9428]: cannot open display: :0 > Mar 20 03:14:04 ubuntu compiz[9445]: Invalid MIT-MAGIC-COOKIE-1 key/usr/bin/compiz (core) - Fatal: Couldn't open display :0 > Mar 20 03:14:04 ubuntu unity-panel-ser[9457]: cannot open display: :0 > Mar 20 03:14:05 ubuntu compiz[9475]: Invalid MIT-MAGIC-COOKIE-1 key/usr/bin/compiz (core) - Fatal: Couldn't open display :0 > Mar 20 03:14:05 ubuntu unity-panel-ser[9487]: cannot open display: :0
It seems GNOME Flashback also doesn't work. It also uses that odd "run-systemd-session": > Executing profile: gnome-flashback > Using XDG session: gnome-flashback-metacity > Executing XDG session command: > /usr/lib/gnome-session/run-systemd-session gnome-session-flashback.target > Profile command exited with exit code 0 > Running /opt/thinlinc/etc/xlogout.d/tl-kdestroy.sh > Running /opt/thinlinc/etc/xlogout.d/tl-umount-localdrives > tl-xinit: client terminated and returned 0 > X I/O error > tl-while-x11: lost Xserver connection, terminating child 3672 ... > tl-while-x11: lost Xserver connection, terminating child 3666 ... > tl-xinit: deleting ../10.1530097409.ended > tl-xinit: Session terminated. Exiting.
Seems to work fine with the latest suggested fix on bug 5950, so there doesn't seem to be anything extra to do here.
Seems okay after bug 5950 fixes are in. Tested on 17.04 and 18.04: * GNOME * Unity * GNOME Flashback
Verified build 5920 with Ubuntu 18.04's built-in GNOME, a standard GNOME and Unity (sudo apt install ubuntu-unity-desktop). I also verified the same build with Ubuntu 17.10's built-in GNOME and Unity (sudo apt install unity). Seems to work great.