Skip to content

Let SELKIES_DEBUG show the desktop session's output - #188

Open
junkerderprovinz wants to merge 1 commit into
linuxserver:masterfrom
junkerderprovinz:fix/selkies-debug-shows-session-output
Open

Let SELKIES_DEBUG show the desktop session's output#188
junkerderprovinz wants to merge 1 commit into
linuxserver:masterfrom
junkerderprovinz:fix/selkies-debug-shows-session-output

Conversation

@junkerderprovinz

Copy link
Copy Markdown
Contributor

Fixes #176.

Following up on the approach I described in the issue. svc-de/run opens the destination while it is still root, and both entrypoints inherit that descriptor across s6-setuidgid. So abc never opens /dev/stdout itself, which was the blocker on the earlier attempt, and the conditional sits in one place rather than in each session script.

Verified the inheritance holds:

opened by: root
inherited write by: nobody

while the same user opening /dev/stdout directly still gets Permission denied.

SELKIES_DEBUG is documented in the README but was not wired to anything before this; with it off, behaviour is unchanged.

The session scripts sent their own output to /dev/null unconditionally, so
autostart failures and the ready banner never reached the container log.
SELKIES_DEBUG is documented but was not wired to anything.

svc-de/run opens the destination while it is still root and both entrypoints
inherit the descriptor across s6-setuidgid, so abc never opens /dev/stdout
itself and the choice lives in one place instead of in each session script.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

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

2 participants