From 057733d02e614d5c606ee08a491a2a27ee67029e Mon Sep 17 00:00:00 2001 From: Kai Knoblich <43905002+knobix@users.noreply.github.com> Date: Tue, 12 Mar 2024 09:50:21 +0100 Subject: [PATCH] qt/aqt/__init__.py: Skip GL library workaround for FreeBSD (#3071) * qt/aqt/__init__.py: Skip GL library workaround for FreeBSD The workaround to load explicitly "libGL.so.1" isn't required for FreeBSD and leads to segmentation faults if used in environments that have nVidia drivers loaded. See also FreeBSD bug 270778 for further details. [1] [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270778 * Update CONTRIBUTORS --- CONTRIBUTORS | 2 +- qt/aqt/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index ec5fdbf23..98116e159 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -157,7 +157,7 @@ Marko Sisovic Viktor Ricci Harvey Randall Pedro Lameiras -Kai Knoblich +Kai Knoblich Lucas Scharenbroch Antonio Cavallo Han Yeong-woo diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py index 552809c13..b6d24080b 100644 --- a/qt/aqt/__init__.py +++ b/qt/aqt/__init__.py @@ -414,7 +414,7 @@ def setupGL(pm: aqt.profiles.ProfileManager) -> None: driver_failed = False # work around pyqt loading wrong GL library - if is_lin: + if is_lin and not sys.platform.startswith("freebsd"): import ctypes ctypes.CDLL("libGL.so.1", ctypes.RTLD_GLOBAL)