We need to load this library before loading QtWebEngine, because
otherwise loading it will fail on arm64 with the following error:
/usr/lib/aarch64-linux-gnu/libglapi.so.0: cannot allocate memory in static TLS block
Gbp-Pq: Name preload-libglx-mesa.patch
from init_paths import init_test_paths
init_test_paths(False)
+import ctypes
+ctypes.CDLL('libGLX_mesa.so.0', ctypes.RTLD_GLOBAL)
+
from PySide2.QtCore import QTimer
from PySide2.QtWebEngine import QtWebEngine
from PySide2.QtWidgets import QApplication