Relative startup scripts

This commit is contained in:
Gobbo Alexandre
2022-03-07 10:17:38 +01:00
parent 3588c10d4e
commit 762f93f176
3 changed files with 36 additions and 3 deletions

View File

@@ -1,10 +1,26 @@
#!/bin/bash
MY_PATH=$(dirname "$0")
export PKG=${MY_PATH}/..
#Check if running as e-account
for i in "$@"
do
case $i in
-pkg=*)
export PKG="${i#*=}"
;;
*) # unknown option
;;
esac
done
/opt/gfa/pshell/pshell \
-version=v1_17 \
-py3 \
-m=/opt/gfa/pshell/apps/psss_panel \
-m=${PKG} \
-z \
-nbcf=true \
-laf=dark \

View File

@@ -1,5 +1,22 @@
#!/bin/bash
MY_PATH=$(dirname "$0")
export PKG=${MY_PATH}/..
#Check if running as e-account
for i in "$@"
do
case $i in
-pkg=*)
export PKG="${i#*=}"
;;
*) # unknown option
;;
esac
done
/opt/gfa/pshell/pshell \
-py3 \
@@ -8,6 +25,6 @@
-nbcf=true \
-laf=dark \
-pini=true \
-setp=/opt/gfa/pshell/apps/psss_panel/config/setup.properties \
-setp=${PKG}/config/setup.properties \
-p=PSSS.java \
$@

View File

@@ -59,7 +59,7 @@ public class PSSS extends Panel {
spFromEn.setValue(energy-150);
spToEn.setValue(energy+150);
} catch (Exception ex) {
getLogger().log(Level.WARNING, null, ex);
getLogger().warning("Error reading energy_machine");
}