summarylogtreecommitdiffstats
path: root/ib-gw
diff options
context:
space:
mode:
Diffstat (limited to 'ib-gw')
-rwxr-xr-xib-gw8
1 files changed, 6 insertions, 2 deletions
diff --git a/ib-gw b/ib-gw
index f66e779c2d2..41005558f7a 100755
--- a/ib-gw
+++ b/ib-gw
@@ -1,4 +1,8 @@
#!/bin/bash
-cd /usr/share/ib-tws/jars
-/usr/share/ib-tws/jre/bin/java -cp \* -Xmx512M -Dsun.java2d.noddraw=true ibgateway.GWClient $HOME/.ib-tws
+# Load system-wide settings and per-user overrides
+. /etc/ib-gw.conf
+[[ -f $HOME/.config/ib-gw.conf ]] && . $HOME/.config/ib-gw.conf
+
+cd /usr/share/ib-tws/jars
+/usr/share/ib-tws/jre/bin/java -cp \* $JAVA_FLAGS ibgateway.GWClient $IB_CONFIG_DIR