diff options
author | Kevin MacMartin | 2024-04-30 01:48:44 -0400 |
---|---|---|
committer | Kevin MacMartin | 2024-04-30 01:48:44 -0400 |
commit | 30d7570390c3ad2a67e5c6130161f397a235ad8b (patch) | |
tree | 01c2221aaf0c724d7a3dc56aa355f7f6845e4c84 /UltiMaker-Cura | |
parent | 592b03965ac0510cedd6c4e05c752b7f71c4e5a1 (diff) | |
download | aur-30d7570390c3ad2a67e5c6130161f397a235ad8b.tar.gz |
Add mesa as an optional dependency and only load the egl vendor stuff if it exists
Diffstat (limited to 'UltiMaker-Cura')
-rwxr-xr-x | UltiMaker-Cura | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/UltiMaker-Cura b/UltiMaker-Cura index 151ee54c7c31..6e8fd6b823c6 100755 --- a/UltiMaker-Cura +++ b/UltiMaker-Cura @@ -2,8 +2,10 @@ unset QT_STYLE_OVERRIDE -if [[ "$XDG_SESSION_TYPE" = 'wayland' ]]; then - __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json MESA_LOADER_DRIVER_OVERRIDE=zink /opt/ultimaker-cura/AppRun "$@" +egl_vendor=/usr/share/glvnd/egl_vendor.d/50_mesa.json + +if [[ "$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 |