summarylogtreecommitdiffstats
path: root/UltiMaker-Cura
diff options
context:
space:
mode:
Diffstat (limited to 'UltiMaker-Cura')
-rwxr-xr-xUltiMaker-Cura2
1 files changed, 1 insertions, 1 deletions
diff --git a/UltiMaker-Cura b/UltiMaker-Cura
index 6e8fd6b823c6..f31013fec6f0 100755
--- a/UltiMaker-Cura
+++ b/UltiMaker-Cura
@@ -4,7 +4,7 @@ unset QT_STYLE_OVERRIDE
egl_vendor=/usr/share/glvnd/egl_vendor.d/50_mesa.json
-if [[ "$XDG_SESSION_TYPE" = 'wayland' && -f "$egl_vendor" ]]; then
+if lsmod | grep -q nvidia && [[ "$XDG_SESSION_TYPE" = 'wayland' && -f "$egl_vendor" ]]; then
__EGL_VENDOR_LIBRARY_FILENAMES="$egl_vendor" MESA_LOADER_DRIVER_OVERRIDE=zink /opt/ultimaker-cura/AppRun "$@"
else
/opt/ultimaker-cura/AppRun "$@"