mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-04-18 12:10:10 +08:00

* Create set-dark-theme-variant.py * Update entrypoint * Update io.github.softfever.OrcaSlicer.yml * Create uses-dark-theme.py * Update MPFR to 4.2.2 --------- Co-authored-by: Noisyfox <timemanager.rick@gmail.com> Co-authored-by: SoftFever <softfeverever@gmail.com>
17 lines
570 B
Bash
17 lines
570 B
Bash
#!/usr/bin/env sh
|
|
|
|
# Work-around https://gitlab.gnome.org/GNOME/gnome-build-meta/-/issues/754
|
|
grep -q org.freedesktop.Platform.GL.nvidia /.flatpak-info && export WEBKIT_DISABLE_DMABUF_RENDERER=1
|
|
|
|
# Work-around https://github.com/bambulab/BambuStudio/issues/3440
|
|
export LC_ALL=C.UTF-8
|
|
|
|
if XDG_CONFIG_HOME=$HOME/.config /app/bin/uses-dark-theme.py; then
|
|
export GTK_THEME='Adwaita:dark'
|
|
export ORCA_SLICER_DARK_THEME='true'
|
|
echo "Message: $(date +%T): INFO: using dark theme variant"
|
|
fi
|
|
|
|
exec /app/bin/orca-slicer "$@" &
|
|
$(/app/bin/set-dark-theme-variant.py) &
|