34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
#!/bin/sh
|
|
|
|
# GIMP has this next line regarding raising the number-of-open-files limit:
|
|
ulimit -n 7000
|
|
|
|
cd "$(dirname "$0")" || exit 1
|
|
|
|
cwd="$(pwd)"
|
|
app="/Applications/RawTherapee.app"
|
|
lib="${app}/Contents/Frameworks"
|
|
resources="${app}/Contents/Resources"
|
|
etc="${resources}/etc"
|
|
export XDG_DATA_DIRS="${resources}/share"
|
|
export DYLD_FALLBACK_LIBRARY_PATH="${lib}"
|
|
export GTK_PATH="${lib}/gtk-3.0/3.0.0"
|
|
export XDG_DATA_HOME="${resources}/share"
|
|
export GSETTINGS_SCHEMA_DIR="${resources}/share/glib-2.0/schemas"
|
|
export GDK_PIXBUF_MODULE_FILE="${etc}/gtk-3.0/gdk-pixbuf.loaders"
|
|
export GDK_PIXBUF_MODULEDIR="${lib}"
|
|
|
|
export RT_SETTINGS="${HOME}/Library/Application Support/RawTherapee/config"
|
|
export RT_CACHE="${HOME}/Library/Application Support/RawTherapee/cache"
|
|
|
|
# Strip out system argument
|
|
case "$1" in
|
|
-psn_*) shift ;;
|
|
esac
|
|
|
|
# Prevent crash when directory name contains special characters
|
|
AppleLocale=`defaults read -g AppleLocale`
|
|
export LANG=${AppleLocale%@*}.UTF-8
|
|
|
|
exec "${app}/Contents/MacOS/bin/rawtherapee-bin" "$@"
|