From 8524c36ca2860496f30d128f2ee0a7a6655e3d0b Mon Sep 17 00:00:00 2001 From: Pete Jemian <prjemian@gmail.com> Date: Sat, 17 Mar 2018 12:36:29 -0500 Subject: [PATCH] declare default UI file early in script, allow to be defined in environment variable --- EXAMPLE_start_caQtDM.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EXAMPLE_start_caQtDM.sh b/EXAMPLE_start_caQtDM.sh index bfd2db7..b9e4a81 100755 --- a/EXAMPLE_start_caQtDM.sh +++ b/EXAMPLE_start_caQtDM.sh @@ -2,6 +2,7 @@ export EPICS_APP=`dirname $0` export EPICS_APP_UI_DIR=${EPICS_APP}/xxxApp/op/ui +export DEFAULT_UI_FILE=${DEFAULT_UI_FILE:-xxx.ui} ####################################### @@ -207,6 +208,6 @@ fi #caQtDM -noMsg xxx.ui & # allow for command line option to specify the file to be opened -caQtDM -style plastique -noMsg ${1:-xxx.ui} +caQtDM -style plastique -noMsg ${1:-${DEFAULT_UI_FILE}} # TODO: what about ALL command line parameters? "$*" -- GitLab