You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] startwm.sh silences all openbox-session output, hiding autostart logs #176
/defaults/startwm.sh ends with exec dbus-launch --exit-with-session /usr/bin/openbox-session > /dev/null 2>&1. That redirect discards everything the openbox session and its children write, so nothing from /defaults/autostart (app launchers, ready banners, healers) reaches docker logs. Diagnosing a desktop that starts but misbehaves becomes a blackout, and a CI smoke gate that greps the container log for an autostart line fails even when the app started fine.
Expected Behavior
The openbox-session output should reach the container log (as it did on the KasmVNC base), or the silencing should be opt-in via an env var.
Steps To Reproduce
Build an image FROM this base and print a marker from /defaults/autostart, e.g. echo "APP READY".
Start the container and run docker logs <name>.
The marker is absent, even though the desktop and app are running.
docker run -d --name selkies-test -p 3001:3001 --shm-size=1g ghcr.io/linuxserver/baseimage-selkies:ubunturesolute
Container logs
The svc-de output stops before any openbox-session or autostart line; the session stdout/stderr never appear because of the > /dev/null 2>&1 on the final exec.
I can open a PR shipping a startwm.sh without the redirect (or gating it behind an env var) if that is welcome.
This was discussed in PR #180, leaving open in case we land on some kind of good solution that does not duplicate too much code in the default startwms. In general desktop output is very noisy it is only ever useful for debugging and should not be enabled by a normal user.
Following up after PR #180 — thanks for leaving this open. I think there's a way to satisfy both things you raised: the abc-can't-write-to-stdout failure and the duplication across startwm.sh/startwm_wayland.sh.
svc-de/run itself still runs as root right up to the exec s6-setuidgid abc ... line — if the SELKIES_DEBUG-conditional redirect is applied on that same line (before the privilege drop), the file gets opened by root and the already-open fd is simply inherited across setuidgid + the exec into startwm(_wayland).sh, so abc never has to open /dev/stdout itself. Since svc-de/run is the one common ancestor of both the X11 and Wayland launch paths, the conditional lives in a single place instead of two.
Happy to put together a PR along these lines if that sounds workable — wanted to check the approach first given the history here.
Activity
thelamer commentedon Aug 7, 2026
This was discussed in PR #180, leaving open in case we land on some kind of good solution that does not duplicate too much code in the default startwms. In general desktop output is very noisy it is only ever useful for debugging and should not be enabled by a normal user.
junkerderprovinz commentedon Aug 9, 2026
Following up after PR #180 — thanks for leaving this open. I think there's a way to satisfy both things you raised: the abc-can't-write-to-stdout failure and the duplication across startwm.sh/startwm_wayland.sh.
svc-de/run itself still runs as root right up to the
exec s6-setuidgid abc ...line — if the SELKIES_DEBUG-conditional redirect is applied on that same line (before the privilege drop), the file gets opened by root and the already-open fd is simply inherited across setuidgid + the exec into startwm(_wayland).sh, so abc never has to open /dev/stdout itself. Since svc-de/run is the one common ancestor of both the X11 and Wayland launch paths, the conditional lives in a single place instead of two.Happy to put together a PR along these lines if that sounds workable — wanted to check the approach first given the history here.
thelamer commentedon Oct 5, 2026
Closing as noted in #188, sorry for dragging my feet and flip flopping on this.