Anurag commited on
Commit
7421827
·
unverified ·
2 Parent(s): 342fb7d16a245d

Merge branch 'edit' into codex/update-start.sh-and-env-builder.js

Browse files
Files changed (1) hide show
  1. start.sh +10 -0
start.sh CHANGED
@@ -1672,6 +1672,16 @@ while true; do
1672
  # 11. Start WhatsApp Guardian after the gateway is accepting connections
1673
  start_guardian_once
1674
 
 
 
 
 
 
 
 
 
 
 
1675
  # 11.5 Warm up the managed browser so first browser actions have a live tab
1676
  warmup_browser
1677
 
 
1672
  # 11. Start WhatsApp Guardian after the gateway is accepting connections
1673
  start_guardian_once
1674
 
1675
+ # ── Silence D-Bus errors for headless Chromium ──
1676
+ if [ -z "${DBUS_SESSION_BUS_ADDRESS:-}" ]; then
1677
+ if command -v dbus-launch >/dev/null 2>&1; then
1678
+ eval "$(dbus-launch --sh-syntax 2>/dev/null)" || true
1679
+ export DBUS_SESSION_BUS_ADDRESS="${DBUS_SESSION_BUS_ADDRESS:-disabled:}"
1680
+ else
1681
+ export DBUS_SESSION_BUS_ADDRESS="disabled:"
1682
+ fi
1683
+ fi
1684
+
1685
  # 11.5 Warm up the managed browser so first browser actions have a live tab
1686
  warmup_browser
1687