Dave Close writes:

Robert Moskowitz via users wrote:

>Is there a way to check, while login, if I am using Wayland?

$ de=$( ps -ef )
  if [[ $de =~ usr.bin.X\  ]]  # note, two spaces are critical
    then echo running X11
  elif [[ $de =~ -wayland ]]
    then echo running Wayland
  else
    echo not running either
  fi

This tells me I'm not running either. However, I'm running X11

root 2128 2064 0 May01 tty1 00:59:57 /usr/libexec/Xorg -core -noreset :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt1 -novtswitch


Attachment: pgpJN6IV445jn.pgp
Description: PGP signature

-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to