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

Raspberry Pi OS • Re: How to check desktop

$
0
0
something like:

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"   fi

Statistics: Posted by dom — Wed Jan 29, 2025 5:39 pm



Viewing all articles
Browse latest Browse all 3552

Trending Articles