Check Ubuntu Desktop environment type¶
hugo@lenovo:~$ loginctl
SESSION UID USER SEAT TTY
c1 121 gdm seat0 tty1
2 1000 hugo seat0 tty2
2 sessions listed.
hugo@lenovo:~$ loginctl show-session 2 -p Type
Type=wayland
hugo@lenovo:~$