From 19c55c0b55e985a78874ec256e08866b04b37418 Mon Sep 17 00:00:00 2001 From: Rob Emanuele Date: Sun, 4 Jan 2026 09:27:06 +0000 Subject: [PATCH] Add the tint2 panel to have control over the windows in OpenBox --- Dockerfile.template | 6 ++++-- image-files/start.sh | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile.template b/Dockerfile.template index 825342e..9acc743 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -4,7 +4,7 @@ ENV IBC_VERSION=3.22.0 RUN apt-get update && \ apt-get install --no-install-recommends -y \ - ca-certificates git libxtst6 libgtk-3-0 openbox procps python3 socat tigervnc-standalone-server unzip wget2 xterm \ + ca-certificates git libxtst6 libgtk-3-0 openbox procps python3 socat tigervnc-standalone-server unzip wget2 xterm tint2 \ # https://github.com/extrange/ibkr-docker/issues/74 libasound2 \ libnss3 \ @@ -45,4 +45,6 @@ RUN mkdir -p ~/ibc && mv /opt/ibc/config.ini ~/ibc/config.ini RUN chmod a+x ./*.sh /opt/ibc/*.sh /opt/ibc/scripts/*.sh -CMD [ "/start.sh" ] \ No newline at end of file +RUN mkdir -p /root/.config/openbox && echo 'tint2 &' > /root/.config/openbox/autostart + +CMD [ "/start.sh" ] diff --git a/image-files/start.sh b/image-files/start.sh index a725dc4..921f753 100644 --- a/image-files/start.sh +++ b/image-files/start.sh @@ -15,7 +15,7 @@ Xvnc -SecurityTypes None -AlwaysShared=1 -geometry 1920x1080 :0 & ./noVNC/utils/novnc_proxy --vnc localhost:5900 & # Start openbox -openbox & +openbox-session & # Start either TWS or IB Gateway if [[ -z ${GATEWAY_OR_TWS:-} ]]; then