Mediapipe error Open Gl error in myservice.service

Hi,
Please put the commands to ~/.xsessionrc and give it a try. We have tried two commands which depend on X11 and it works:

/usr/bin/gst-launch-1.0 videotestsrc num-buffers=100 is-live=1 ! nvvidconv ! nvegltransform ! nveglglessink
/usr/bin/python /home/nvidia/camera.py

camera.py is this sample:
V4l2src using OpenCV Gstreamer is not working in Jetson Xavier NX - #3 by DaneLLL