mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-12 10:21:17 +00:00
/proc/driver/nvidia/version is readable inside the Flatpak sandbox, so the binary's NVIDIA branch already sets WEBKIT_DMABUF_RENDERER_FORCE_SHM with the correct runtime gate and the entrypoint's own export is redundant. Verified with: flatpak run --command=cat com.orcaslicer.OrcaSlicer /proc/driver/nvidia/version which prints the NVRM version (driver 615.71.09) from inside the sandbox.
12 lines
428 B
Bash
12 lines
428 B
Bash
#!/usr/bin/env sh
|
|
|
|
# WebKit's NVIDIA DMABUF workaround (gnome-build-meta#754) is applied by the
|
|
# binary itself, gated on the runtime WebKitGTK version (src/OrcaSlicer.cpp).
|
|
|
|
# Work-around https://github.com/bambulab/BambuStudio/issues/3440
|
|
# Use LC_NUMERIC instead of LC_ALL to prevent decimal separator issues
|
|
# while preserving the user's language/locale for translations.
|
|
export LC_NUMERIC=C
|
|
|
|
exec /app/bin/orca-slicer "$@"
|