mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Startup script now adjusted to start Resinsight with the users cwd as default file open path
p4#: 19320
This commit is contained in:
@@ -2,11 +2,14 @@
|
|||||||
|
|
||||||
# Find the installation path. We assume that this script is placed in the installation directory.
|
# Find the installation path. We assume that this script is placed in the installation directory.
|
||||||
INSTALL_PATH=$(dirname "$_")
|
INSTALL_PATH=$(dirname "$_")
|
||||||
#echo "Invoking ResInsight in path: $INSTALL_PATH"
|
|
||||||
|
# Store the users working directory
|
||||||
|
WORKING_DIR=`pwd`
|
||||||
|
|
||||||
# Change to application directory
|
# Change to application directory
|
||||||
cd "$INSTALL_PATH"
|
cd "$INSTALL_PATH"
|
||||||
|
|
||||||
# Start the application
|
# Start the application making the default file open path become the users cwd
|
||||||
CmdName=ResInsight
|
|
||||||
exec ./$CmdName "$@"
|
CommandLine="./ResInsight -startdir $WORKING_DIR $@"
|
||||||
|
exec $CommandLine
|
||||||
|
|||||||
Reference in New Issue
Block a user