Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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)

like image 476
Leo Ufimtsev Avatar asked Jul 03 '15 20:07

Leo Ufimtsev


People also ask

How do I start gnome in TTY?

To launch gnome from terminal use the command startx . Show activity on this post. Show activity on this post. You can use ssh -X or ssh -Y to his machine to run apps on your friend's machine but using your Xorg.

How do I restart Wayland session?

Gnome Shell has a built-in restart function. Users can run it to restart a frozen desktop. The only downside is that this doesn't work with wayland, so we have to use "Xorg" for it to work. To restart the Gnome Shell session while everything is frozen, we will start pressing the key combination Alt + F2.


1 Answers

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

like image 147
Hi-Angel Avatar answered Sep 20 '22 15:09

Hi-Angel