How to start gnome-wayland session from command line?

Leo Ufimtsev picture Leo Ufimtsev · Jul 3, 2015 · Viewed 36.3k times · Source

I'm experimenting with wayland.

You can start Gnome with X through startx command. Is there an way to start Gnome with wayland through some command?

I would like to be able to run Gnome/X on my main display. Then switch to display :2 (Ctrl+alt+win+F2/F3) and then run something like:

startWayland 

So that I have a seconday desktop with gnome running with wayland.

Is this possible? (A near-alternative is also welcome)

Answer

Hi-Angel picture Hi-Angel · Jul 23, 2016

A working solution per Jonas Ådahl a mutter developer:

Usually what I do is switch to a VT and run:

dbus-run-session -- gnome-shell --display-server --wayland