Skip to content

Fix Rune failing to start without graphical libraries installed - #70

Merged
ernestrc merged 2 commits into
mainfrom
github-66
Sep 18, 2026
Merged

ernestrc merged 2 commits into
mainfrom
github-66

Conversation

@ernestrc

@ernestrc ernestrc commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

A Rune binary listed libX11.so.6 in DT_NEEDED, so the dynamic loader refused to start it on a server with no display stack — before main() ran, which made the mode flags irrelevant. The ebiten fork now resolves Xlib through dlopen when it opens a window, leaving libc and libm as the only shared libraries the binary needs.

With that out of the way, promote the hidden --hardcore flag to --tui and also add --headless, which serves a machine's workspaces on the Rune network with no UI so everyone has access to this.

Fixes #66.

coderabbitai[bot]

This comment was marked as spam.

@unstablebuild unstablebuild deleted a comment from coderabbitai Bot Sep 15, 2026
@wthrajat

wthrajat commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

@ernestrc I left some nits/questions

Comment thread cmd/rune/headless.go Resolved
Comment thread cmd/rune/headless.go Resolved
Comment thread cmd/rune/main.go Resolved
Comment thread .github/workflows/test-linux.yml Resolved
Comment thread .github/workflows/test-linux.yml Resolved
Comment thread cmd/rune/headless.go Resolved
@ernestrc
ernestrc force-pushed the github-66 branch 3 times, most recently from 45b5c4b to 0518a11 Compare September 17, 2026 00:01
@wthrajat

Copy link
Copy Markdown
Contributor

@ernestrc feel free to resolve all threads.

A Rune binary listed libX11.so.6 in DT_NEEDED, so the dynamic loader
refused to start it on a server with no display stack — before main()
ran, which made the mode flags irrelevant. The ebiten fork now resolves
Xlib through dlopen when it opens a window, leaving libc and libm as the
only shared libraries the binary needs.

Signed-off-by: ernestrc <[email protected]>
@ernestrc
ernestrc merged commit f568e55 into main Sep 18, 2026
8 checks passed
@ernestrc
ernestrc deleted the github-66 branch September 18, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allows headless environment (i.e TUI, no OpenGL, no X.org, etc) to use Rune

2 participants