2011-08-22 00:36:27 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# retrieve the id and title from the TITLE file
|
|
|
|
export GSGP_ID="$( cut -d' ' -f1 < TITLE )"
|
|
|
|
export GSGP_TITLE="$( cut -d' ' -f2- < TITLE )"
|
|
|
|
|
2011-10-02 15:19:41 -04:00
|
|
|
# we'll provide the ability to specify the profile in the future
|
2011-08-22 00:36:27 -04:00
|
|
|
export GSGP_PROFILE=default
|
|
|
|
|
2011-10-02 15:19:41 -04:00
|
|
|
# path to current profile
|
|
|
|
export GSGP_PROFILE_PATH="$HOME/.$GSGP_ID/profiles/$GSGP_PROFILE"
|
|
|
|
|
|
|
|
# create path in case it does not yet exist
|
|
|
|
mkdir -p "$GSGP_PROFILE_PATH" 2>/dev/null
|
2011-08-22 00:36:27 -04:00
|
|
|
|
2011-10-02 15:19:41 -04:00
|
|
|
opening_scene="$( dirname $0)/util/scene-runner start"
|
2011-08-22 00:36:27 -04:00
|
|
|
screen -c screenrc $opening_scene
|
|
|
|
|