2012-05-18 09:45:23 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
# Find the installation path. We assume that this script is placed in the installation directory.
|
|
|
|
|
INSTALL_PATH=$(dirname "$_")
|
2012-10-26 14:03:57 +02:00
|
|
|
|
|
|
|
|
# Store the users working directory
|
|
|
|
|
WORKING_DIR=`pwd`
|
2012-05-18 09:45:23 +02:00
|
|
|
|
|
|
|
|
# Change to application directory
|
|
|
|
|
cd "$INSTALL_PATH"
|
|
|
|
|
|
2012-10-26 14:03:57 +02:00
|
|
|
# Start the application making the default file open path become the users cwd
|
|
|
|
|
|
2015-01-25 22:14:20 +01:00
|
|
|
CommandLine="./ResInsight --startdir $WORKING_DIR $@"
|
2012-10-26 14:03:57 +02:00
|
|
|
exec $CommandLine
|