Don't see any randomness to this at all. The current behavior seen here on a 
Fresh install of Mondays image updated - 
1st. login after install is always to an ubuntu-xorg session
 
The login greeter will Always says "ubuntu" no matter what.

Subsequent logins from a reboot or cold boot are always to the session
one exited from previously.

Logging out then in to the other session can produce some mixed info
though the session will be what's picked. Possibly the mixed info is
unimportant?

Note that if on an ubuntu-xorg session because the greeter Always says
ubuntu to actually get an ubuntu session one must switch in greeter from
ubuntu to ubuntu-xorg & back to ubuntu

Examples of mixed info from log out session switching:

Log out from ubuntu-xorg to an actual ubuntu session.

~$ echo $DESKTOP_SESSION
ubuntu

$ env |grep wayland
WAYLAND_DISPLAY=wayland-0
XDG_SESSION_TYPE=wayland

$ env |grep xorg
XDG_DATA_DIRS=/usr/share/ubuntu-xorg:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu-xorg:/etc/xdg

Log out from an actual ubuntu session to an ubuntu-xorg session.

$ echo $DESKTOP_SESSION
ubuntu-xorg

$ env |grep wayland
WAYLAND_DISPLAY=wayland-0
$ env |grep xorg

DESKTOP_SESSION=ubuntu-xorg
XDG_DATA_DIRS=/usr/share/ubuntu-xorg:/usr/share/ubuntu-xorg:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/var/lib/snapd/desktop
XDG_SESSION_DESKTOP=ubuntu-xorg
GDMSESSION=ubuntu-xorg
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu-xorg:/etc/xdg/xdg-ubuntu-xorg:/etc/xdg

Restarts produce different info

Restart from an actual ubuntu session

$ echo $DESKTOP_SESSION
ubuntu
$ env |grep wayland
WAYLAND_DISPLAY=wayland-0
XDG_SESSION_TYPE=wayland
$ env |grep xorg

Restart from an ubuntu-xorg session.

$ echo $DESKTOP_SESSION
ubuntu-xorg
$ env |grep xorg
DESKTOP_SESSION=ubuntu-xorg
XDG_DATA_DIRS=/usr/share/ubuntu-xorg:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_SESSION_DESKTOP=ubuntu-xorg
GDMSESSION=ubuntu-xorg
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu-xorg:/etc/xdg
$ env |grep wayland

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in Ubuntu.
https://bugs.launchpad.net/bugs/1705157

Title:
  "Ubuntu" and "Ubuntu on Xorg" randomly start the same session (maybe
  Wayland maybe Xorg)

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-session/+bug/1705157/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to