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

Raspberry Pi OS • Re: How to check desktop

$
0
0
I use the following script to check Compositor on Bookworm.

Code:

#! /bin/sh# Check Desktop Compositorcheckcompositor () {RES=$(ps axc | grep -w  $1)if [ -n "$RES" ]; thenecho $1 'Active'fi}checkcompositor 'labwc'checkcompositor 'wayland'
I don't use x11. and haven't for ages, but if neither you could probably assume X11

Statistics: Posted by Milliways — Fri Jan 31, 2025 2:44 am



Viewing all articles
Browse latest Browse all 7604

Trending Articles