# is necessary for loading of .ini or .xml resources file
###
-if ( ! $?LightAppConfig ) setenv LightAppConfig ${GUI_ROOT_DIR}/share/salome/resources/gui
-if ( ! $?LightAppResources ) setenv LightAppResources ${GUI_ROOT_DIR}/share/salome/resources/gui
+if ( ! ($?LightAppConfig) ) then
+ setenv LightAppConfig ${GUI_ROOT_DIR}/share/salome/resources/gui
+else
+ setenv LightAppConfig ${LightAppConfig}:${GUI_ROOT_DIR}/share/salome/resources/gui
+endif
+if ( ! ($?LightAppResources) ) then
+ setenv LightAppResources ${GUI_ROOT_DIR}/share/salome/resources/gui
+else
+ setenv LightAppResources ${LightAppResources}:${GUI_ROOT_DIR}/share/salome/resources/gui
+endif
###
# default settings
# start application
###
-SUITApp LightApp -style salome $* &
+SUITApp LightApp $* &
if [ -z "$LightAppConfig" ] ; then
export LightAppConfig=${GUI_ROOT_DIR}/share/salome/resources/gui
+else
+ export LightAppConfig=${LightAppConfig}:${GUI_ROOT_DIR}/share/salome/resources/gui
fi
if [ -z "$LightAppResources" ] ; then
export LightAppResources=${GUI_ROOT_DIR}/share/salome/resources/gui
+else
+ export LightAppResources=${LightAppResources}:${GUI_ROOT_DIR}/share/salome/resources/gui
fi
###
# start application
###
-SUITApp LightApp -style salome $* &
+SUITApp LightApp $* &