I wrote:

>$ 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

Sorry, I should have mentioned that this works for me under KDE. If it
doesn't work otherwise, I'm sure someone can create an update.
-- 
Dave Close, Compata, Irvine CA      "Intellect confuses intuition."
[email protected], +1 714 434 7359      -- Piet Mondrian
[email protected]


-- 
_______________________________________________
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