- Set xsetroot solid background (#12100a, dark amber) so openbox doesn't show bare black before Chromium opens - Re-add healthz wait loop before launching Chromium: without it Chromium opens localhost/loading before bee-web is up and gets connection-refused which renders as a blank white page Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
36 lines
839 B
Bash
Executable File
36 lines
839 B
Bash
Executable File
#!/bin/sh
|
|
# openbox session: launch tint2 taskbar + chromium, then openbox as WM.
|
|
# This file is used as an xinitrc by bee-desktop.
|
|
|
|
# Disable screensaver and DPMS
|
|
xset s off
|
|
xset -dpms
|
|
xset s noblank
|
|
|
|
# Set desktop background: dark with amber tint matching web UI palette.
|
|
xsetroot -solid '#12100a'
|
|
|
|
tint2 &
|
|
|
|
# Wait up to 60s for bee-web before opening Chromium.
|
|
# Without this Chromium gets connection-refused and shows a blank page.
|
|
_i=0
|
|
while [ $_i -lt 60 ]; do
|
|
curl -sf http://localhost/healthz >/dev/null 2>&1 && break
|
|
sleep 1
|
|
_i=$((_i+1))
|
|
done
|
|
unset _i
|
|
|
|
chromium \
|
|
--disable-infobars \
|
|
--disable-translate \
|
|
--no-first-run \
|
|
--disable-session-crashed-bubble \
|
|
--disable-features=TranslateUI \
|
|
--user-data-dir=/tmp/bee-chrome \
|
|
--start-maximized \
|
|
http://localhost/loading &
|
|
|
|
exec openbox
|