mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-30 18:52:38 +02:00
![]() Pass the X11 socket of the Linux CI runners to the container where our CI tests run, with the `-g` flag of `dev_scripts/env.py`. By having a working X11 socket, we can run GUI tests. Prior to this fix, we would encounter this error: tests/gui/test_main_window.py::test_change_document_button qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: xcb, offscreen, wayland-egl, wayland, eglfs, vnc, minimalegl, vkkhrdisplay, linuxfb, minimal. Another alternative we considered was to use the `QT_QPA_PLATFORM=offscreen` environment variable. This alternative works, but it's less close to the end-user's environment, so we decided in favor of the approach above. |
||
---|---|---|
.. | ||
config.yml |