clawdie-iso/live/operator-session/clawdie-xfce-session
Sam & Claude 6bade5d04e Merge xfce-operator-usb: AMD ASUS hardware lane + XFCE panel polish (Sam & Claude)
Consolidates the operator-USB work into main now that the AMD ASUS hardware-evidence collection is closed and Codex is parked. Brings the live-session hardware lane (XInput/libinput touchpad guard, internal audio + resolver bootstrap, hw-report with gated public upload, operator-USB branding) and the config-only XFCE panel polish (Pass 1 + Pass 2: branded Whisker PNG, xkb text mode, panel 40px, systray square-icons).

Conflict: doc/LLM-PROVIDER-HARNESS.md was evolved on both sides. Resolved as a union with no content lost — the xfce-side harness/provider/fabric restructure is the base, and main's two unique blocks (Verifying Key Cleanup flow, the 2D Platform x Harness matrix + populate/add procedures) are preserved. The doc owner may later dedupe the overlap between the two 1D matrices and the 2D matrix.

Verification debt stays explicit and open (not closed by this merge): XFCE visual-polish confirmation and the next rebuilt-image hardware retest, per doc/XFCE-PANEL-BUGS-HANDOFF.md and PLAN-OPERATOR-USB-NEXT.md.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-04 20:04:23 +02:00

37 lines
1.3 KiB
Bash

#!/bin/sh
LOG="${HOME}/.xsession-errors"
_uid="$(id -u)"
export XDG_RUNTIME_DIR="/var/run/user/${_uid}"
mkdir -p "/tmp/clawdie/cache" "${HOME}/.config/clawdie" "${XDG_RUNTIME_DIR}" 2>/dev/null || true
chown "$(id -un):$(id -gn)" /tmp/clawdie /tmp/clawdie/cache "${XDG_RUNTIME_DIR}" 2>/dev/null || true
chmod 0700 /tmp/clawdie /tmp/clawdie/cache "${XDG_RUNTIME_DIR}" 2>/dev/null || true
mkdir -p "${HOME}/.cache/sessions"
touch "$LOG"
chmod 0644 "$LOG" 2>/dev/null || true
exec >>"$LOG" 2>&1
echo "=== $(date -u '+%Y-%m-%dT%H:%M:%SZ') clawdie-xfce-session start ==="
export PATH="/opt/clawdie/npm-global/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${PATH}"
export XDG_CURRENT_DESKTOP="XFCE"
export XDG_MENU_PREFIX="xfce-"
export DESKTOP_SESSION="clawdie-xfce"
export GIO_USE_VOLUME_MONITOR="unix"
if [ -r "${HOME}/.xprofile" ]; then
. "${HOME}/.xprofile"
fi
if command -v clawdie-live-touchpad-guard >/dev/null 2>&1; then
echo "Starting touchpad guard"
clawdie-live-touchpad-guard &
fi
if [ -z "${DBUS_SESSION_BUS_ADDRESS:-}" ] && command -v dbus-run-session >/dev/null 2>&1; then
echo "Starting session under dbus-run-session"
exec dbus-run-session -- /usr/local/bin/clawdie-xfce-session-inner
fi
echo "Starting session without dbus-run-session fallback"
exec /usr/local/bin/clawdie-xfce-session-inner