ynput / ayon-launcher

AYON desktop application launcher
Apache License 2.0
31 stars 13 forks source link

Linux Qt binding granurality #127

Closed jakubjezek001 closed 1 month ago

jakubjezek001 commented 1 month ago

MODIFIED BY @iLLiCiTiT

Changelog Description

Added distro python module to detect linux distribution name used for detection of Qt binding. Also added option to use PySide2 during docker build.

Source issue

Rocky 8 might not support PySide6 by default and that might require to use PySide2 instead of PySide6. That was case because of specific rocky 8 state and GPU drivers. For now that is considered as edge case as most of machines should use PySide6 by rather.

Error

qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
iLLiCiTiT commented 1 month ago

We do the same for centos7 by adding ENV QT_BINDING=centos7 in docker, so now we have 2 different approaches to that, so we should probably remove the env from docker image.

iLLiCiTiT commented 1 month ago

Modified the original PR to be able to build any linux installer with PySide2.