Skip to content

[BUG] startwm.sh silences all openbox-session output, hiding autostart logs #176

Closed

Description

@junkerderprovinz

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

/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

  1. Build an image FROM this base and print a marker from /defaults/autostart, e.g. echo "APP READY".
  2. Start the container and run docker logs <name>.
  3. The marker is absent, even though the desktop and app are running.

Environment

  • OS: Unraid / any Docker host
  • Base: ghcr.io/linuxserver/baseimage-selkies (current), X11 mode (Xvfb + openbox)

Docker creation

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.

Activity

  1. thelamer commented on Aug 7, 2026

    @thelamer
    Member

    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.

  2. self-assigned this
    on Aug 7, 2026
  3. junkerderprovinz commented on Aug 9, 2026

    @junkerderprovinz
    ContributorAuthor

    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.

  4. thelamer commented on Oct 5, 2026

    @thelamer
    Member

    Closing as noted in #188, sorry for dragging my feet and flip flopping on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions