#!/bin/bash
cd "$(dirname "$0")"
OS_X_VERSION=$(sw_vers -productVersion | cut -d. -f1,2)
FW_DIR="$PWD/../Frameworks/$OS_X_VERSION"

export DYLD_FRAMEWORK_PATH="$FW_DIR"
export DYLD_LIBRARY_PATH="$FW_DIR"
export DYLD_FALLBACK_FRAMEWORK_PATH="/System/Library/Frameworks:/Library/Frameworks"
export DYLD_FALLBACK_LIBRARY_PATH="/usr/lib:/usr/local/lib"

exec "/Applications/Safari.app/Contents/MacOS/Safari"
