Search code examples
linuxgnomettywayland

How to start GNOME Wayland session from command line/tty?


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)


Solution

  • 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