"Fossies" - the Fresh Open Source Software Archive

Member "rawtherapee-5.7/tools/osx/executable_loader.in" (10 Sep 2019, 932 Bytes) of package /linux/misc/rawtherapee-5.7.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "executable_loader.in": 5.6_vs_5.7.

    1 #!/bin/sh
    2 
    3 cd "$(dirname "$0")" || exit 1
    4 
    5 cwd="$(pwd)"
    6 app="${cwd%/Contents/*}"
    7 lib="${app}/Contents/Frameworks"
    8 resources="${app}/Contents/Resources"
    9 etc="${resources}"/etc
   10 export XDG_DATA_DIRS="${resources}/share"
   11 export DYLD_LIBRARY_PATH="${lib}"
   12 export GTK_PATH="${lib}/gtk-3.0/3.0.0"
   13 export XDG_DATA_HOME="${resources}/share"
   14 export GSETTINGS_SCHEMA_DIR="${resources}/share/glib-2.0/schemas"
   15 export GDK_PIXBUF_MODULE_FILE="${etc}/gtk-3.0/gdk-pixbuf.loaders"
   16 export GDK_PIXBUF_MODULEDIR="${lib}/gdk-pixbuf-2.0/2.10.0/loaders"
   17 
   18 export RT_SETTINGS="${HOME}/Library/Application Support/RawTherapee/config"
   19 export RT_CACHE="${HOME}/Library/Application Support/RawTherapee/cache"
   20 
   21 # Strip out system argument
   22 case "$1" in
   23     -psn_*) shift ;;
   24 esac
   25 
   26 # Prevent crash when directory name contains special characters
   27 AppleLocale=`defaults read -g AppleLocale`
   28 export LANG=${AppleLocale%@*}.UTF-8
   29 
   30 exec "${cwd}/bin/rawtherapee-bin" "$@"