summarylogtreecommitdiffstats
path: root/UltiMaker-Cura
blob: f31013fec6f0c0776db3008d81eaa5fd8ff4979f (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash

unset QT_STYLE_OVERRIDE

egl_vendor=/usr/share/glvnd/egl_vendor.d/50_mesa.json

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 "$@"
fi