summarylogtreecommitdiffstats
path: root/ib-tws
diff options
context:
space:
mode:
authorBen Alex2018-05-08 06:51:00 +1000
committerBen Alex2018-05-08 06:51:00 +1000
commit6c3bc49d4e0cc6b16c77080d357adafa584a595c (patch)
treec8830548fe0b115a2f740895d1f620fc856434d7 /ib-tws
parent5611e2b4581889ea4e1cf265f34e81dd3fcd2dd7 (diff)
downloadaur-6c3bc49d4e0cc6b16c77080d357adafa584a595c.tar.gz
Allow user customisation of startup parameters
Diffstat (limited to 'ib-tws')
-rwxr-xr-xib-tws9
1 files changed, 6 insertions, 3 deletions
diff --git a/ib-tws b/ib-tws
index 7d3161927d1..508588807b6 100755
--- a/ib-tws
+++ b/ib-tws
@@ -1,5 +1,8 @@
#!/bin/bash
+
+# Load system-wide settings and per-user overrides
+. /etc/ib-tws.conf
+[[ -f $HOME/.config/ib-tws.conf ]] && . $HOME/.config/ib-tws.conf
+
cd /usr/share/ib-tws/jars
-/usr/share/ib-tws/jre/bin/java -cp \* \
- -Xmx768m -Dsun.awt.nopixfmt=true -Dsun.java2d.noddraw=true -Dswing.boldMetal=false -Dsun.locale.formatasdefault=true \
- jclient.LoginFrame $HOME/.ib-tws
+/usr/share/ib-tws/jre/bin/java -cp \* $JAVA_FLAGS jclient.LoginFrame $IB_CONFIG_DIR