Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7755

Raspberry Pi OS • Re: How do I tell if X11 or Wayland over ssh

$
0
0
It is simple to determine what compositor is in use on a host over ssh, but of limited value because if you are accessing the Pi remotely it will be using X.

I use the following code fragment :-

Code:

if pgrep labwc > /dev/null; then  echo "Running labwc"elif pgrep wayfire > /dev/null; then  echo "Running wayfire"elif pgrep Xorg > /dev/null; then  echo "Running Xorg"else  echo "No Desktop"fi
Could one user be logged in to a virtual console and using Wayland while another user be logged in to another virtual console and using X11?

I would assume this is possible, but never had the interest to try.

Statistics: Posted by ejolson — Mon Jun 15, 2026 3:49 am



Viewing all articles
Browse latest Browse all 7755

Latest Images

Trending Articles



Latest Images