3 ####################################################################################
5 # The script is the part of the SALOME installation procedure.
6 # This script is used to launch SALOME desktop.
8 # Copyright : 2006 CEA/DEN, EDF R&D
9 ####################################################################################
11 # This procedure checks if the SALOME desktop can be run.
12 # Returns 0 in success and 1 if any error occurs.
15 if [ -f ${INSTALL_ROOT}/env_products.sh ] ; then
16 source ${INSTALL_ROOT}/env_products.sh
18 if [ "${KERNEL_ROOT_DIR}" != "" ] && [ -f ${KERNEL_ROOT_DIR}/bin/salome/runSalome ] ; then
24 # This procedure is used to launch SALOME.
25 # Returns 0 in success and 1 if any error occurs.
28 if [ -f ${INSTALL_ROOT}/env_products.sh ] ; then
29 source ${INSTALL_ROOT}/env_products.sh
31 if [ "${KERNEL_ROOT_DIR}" != "" ] && [ -f ${KERNEL_ROOT_DIR}/bin/salome/runSalome ] ; then
32 runSalome >& /dev/null
33 if [ "$?" == "0" ] ; then
40 # Set general usage variables from the command line parameters:
41 # $0 is the path to this script itself
42 # $1 is the name of the procedure to be run
43 # $2 is the installation directory path
44 # $3 is the temporary directory path
45 SCRIPT_DIR=`dirname $0`