mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 16:25:55 +08:00
Merge pull request #3097 from midyukov-anton/activate_workaround_nvidia
Activation workaround Linux+NVidia proprietary drivers for all distributions
This commit is contained in:
commit
42b232756e
@ -40,7 +40,7 @@ import faulthandler
|
|||||||
if Platform.isLinux(): # Needed for platform.linux_distribution, which is not available on Windows and OSX
|
if Platform.isLinux(): # Needed for platform.linux_distribution, which is not available on Windows and OSX
|
||||||
# For Ubuntu: https://bugs.launchpad.net/ubuntu/+source/python-qt4/+bug/941826
|
# For Ubuntu: https://bugs.launchpad.net/ubuntu/+source/python-qt4/+bug/941826
|
||||||
linux_distro_name = platform.linux_distribution()[0].lower()
|
linux_distro_name = platform.linux_distribution()[0].lower()
|
||||||
if linux_distro_name in ("debian", "ubuntu", "linuxmint", "fedora"): # TODO: Needs a "if X11_GFX == 'nvidia'" here. The workaround is only needed on Ubuntu+NVidia drivers. Other drivers are not affected, but fine with this fix.
|
# TODO: Needs a "if X11_GFX == 'nvidia'" here. The workaround is only needed on Ubuntu+NVidia drivers. Other drivers are not affected, but fine with this fix.
|
||||||
import ctypes
|
import ctypes
|
||||||
from ctypes.util import find_library
|
from ctypes.util import find_library
|
||||||
libGL = find_library("GL")
|
libGL = find_library("GL")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user