#!/bin/sh
user=$(whoami)
scriptDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$scriptDir/../system/"
targetDir=$(pwd)
encodedTargetDir=$(echo $(pwd) | sed -f "$scriptDir/encode.sed")
cd "/Users/$user/Library/Preferences/Macromedia/Flash Player/"
mkdir -p "#Security/FlashPlayerTrust"
cd "#Security/FlashPlayerTrust"
echo "file://$encodedTargetDir/ChromeHtml.swf">"$(pwd)/galileo.cfg"
open "$targetDir/init.html"
