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-2007 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}" != "" ] && [ -f ${KERNEL_ROOT_DIR}/bin/salome/runSalome ] ; then
28 # This procedure is used to launch SALOME.
29 # Returns 0 in success and 1 if any error occurs.
32 if [ -f ${INSTALL_ROOT}/env_products.sh ] ; then
33 source ${INSTALL_ROOT}/env_products.sh
35 if [ "${KERNEL_ROOT_DIR}" != "" ] && [ -f ${KERNEL_ROOT_DIR}/bin/salome/runSalome ] ; then
36 runSalome >& /dev/null
37 if [ "$?" == "0" ] ; then
44 # Set general usage variables from the command line parameters:
45 # $0 is the path to this script itself
46 # $1 is the name of the procedure to be run
47 # $2 is the installation directory path
48 # $3 is the temporary directory path
49 SCRIPT_DIR=`dirname $0`