You need to use the desktop interfaces in order to access the X server.
I’m not entirely sure what you’d need exactly to get your script working. OpenGL support might be required too.
You need to use the desktop interfaces in order to access the X server.
I’m not entirely sure what you’d need exactly to get your script working. OpenGL support might be required too.