Request hardware-observe auto-connection for the energy-tools snap (was Classic confinement request for energy-tools)

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.