Fedora - checking graphical session type (Wayland or Xorg)

Published on Author admin

How to check graphical session type (Wayland or Xorg) on Fedora system.
At first, use following command to get current session ID:

loginctl

Next, use bellow command to check graphical session type:

loginctl show-session ID -p Type

where ID is session ID from previous command output.

Example (where session ID = 1):

$ loginctl
   SESSION        UID USER             SEAT             TTY            
         1       1000 pawel            seat0            /dev/tty1      

1 sessions listed.
$
$ loginctl show-session 1 -p Type
Type=wayland
$