3 ####################################################################################
4 # File : start_salome.sh
5 # Created : Tue Oct 30 11:15:35 2006
6 # Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
8 # Module : Installation Wizard
9 # Copyright : 2002-2008 CEA
11 # This script is the part of the SALOME installation procedure.
13 ####################################################################################
15 # This procedure checks if the SALOME desktop can be run.
16 # Returns 0 in success and 1 if any error occurs.
19 if [ -f ${INSTALL_ROOT}/env_products.sh ] ; then
20 source ${INSTALL_ROOT}/env_products.sh
22 if [ "${KERNEL_ROOT_DIR}" != "" ] && [ "${GUI_ROOT_DIR}" != "" ] &&
23 [ -f ${KERNEL_ROOT_DIR}/bin/salome/runSalome ] ; then
29 # This procedure is used to launch SALOME.
30 # Returns 0 in success and 1 if any error occurs.
33 if [ -f ${INSTALL_ROOT}/env_products.sh ] ; then
34 source ${INSTALL_ROOT}/env_products.sh
36 if [ "${KERNEL_ROOT_DIR}" != "" ] && [ "${GUI_ROOT_DIR}" != "" ] &&
37 [ -f ${KERNEL_ROOT_DIR}/bin/salome/runSalome ] ; then
38 runSalome >& /dev/null
39 if [ "$?" == "0" ] ; then
46 # Set general usage variables from the command line parameters:
47 # $0 is the path to this script itself
48 # $1 is the name of the procedure to be run
49 # $2 is the installation directory path
50 # $3 is the temporary directory path
51 SCRIPT_DIR=`dirname $0`