Some checks failed
Build and Test / build (pull_request) Failing after 13m13s
- Fix hazy text on Wayland by setting QT_SCALE_FACTOR_ROUNDING_POLICY=RoundPreferFloor and QT_ENABLE_HIGHDPI_SCALING=1 in deb and AppImage launchers; remove forced QT_QPA_PLATFORM=xcb from AppImage to allow native Wayland (fixes #33) - Add menu icon size preference selector (Small/Medium/Large/Extra large) in General preferences, applied via QMenu stylesheet at startup and on save (fixes #46) - Replace verbose theme customization banner with concise 'Kindred Create Theme' label in UI preferences; split Overlay group into 'Panel Visibility' and 'Overlay Interaction' sections (fixes #35) - Remove Addon Manager branding label from General preferences, change recent file list default from 4 to 10 (fixes #36)
36 lines
1.2 KiB
Bash
Executable File
36 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
HERE="$(dirname "$(readlink -f "${0}")")"
|
|
export PREFIX=${HERE}/usr
|
|
# export LD_LIBRARY_PATH=${HERE}/usr/lib${LD_LIBRARY_PATH:+':'}$LD_LIBRARY_PATH
|
|
export PYTHONHOME=${HERE}/usr
|
|
export PATH_TO_FREECAD_LIBDIR=${HERE}/usr/lib
|
|
# export QT_QPA_PLATFORM_PLUGIN_PATH=${HERE}/usr/plugins
|
|
# export QT_XKB_CONFIG_ROOT=${HERE}/usr/lib
|
|
export FONTCONFIG_FILE=/etc/fonts/fonts.conf
|
|
export FONTCONFIG_PATH=/etc/fonts
|
|
|
|
# Qt HiDPI scaling — force integer rounding to avoid blurry text on fractional scales
|
|
export QT_SCALE_FACTOR_ROUNDING_POLICY=RoundPreferFloor
|
|
export QT_ENABLE_HIGHDPI_SCALING=1
|
|
|
|
# Show packages info if DEBUG env variable is set
|
|
if [ "$DEBUG" = 1 ]; then
|
|
cat ${HERE}/packages.txt
|
|
fi
|
|
|
|
# SSL
|
|
# https://forum.freecad.org/viewtopic.php?f=4&t=34873&start=20#p327416
|
|
export SSL_CERT_FILE=$PREFIX/ssl/cacert.pem
|
|
# https://github.com/FreeCAD/FreeCAD-AppImage/pull/20
|
|
export GIT_SSL_CAINFO=$HERE/usr/ssl/cacert.pem
|
|
|
|
# Support for launching other applications (from /usr/bin)
|
|
# https://github.com/FreeCAD/FreeCAD-AppImage/issues/30
|
|
if [ ! -z "$1" ] && [ -e "$HERE/usr/bin/$1" ] ; then
|
|
MAIN="$HERE/usr/bin/$1" ; shift
|
|
else
|
|
MAIN="$HERE/usr/bin/freecad"
|
|
fi
|
|
|
|
"${MAIN}" "$@"
|