0

I want to be able to check from with a python script whether a VNC client is connected. VNC Connect knows this and changes the colour of the VNC icon on the desktop. I want to capture this status programmatically.

1 Answer 1

0

This is not Pi specific; on any system
sudo systemctl status vncserver-x11-serviced.service
should show status which you could parse.

systemctl is the place to start for information about services.

1
  • Thanks very much. Just what I needed Jan 28, 2022 at 14:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.