Repository navigation
fix(computer): ship a UTF-8 locale in the image env - #1788
Merged
Merged
Conversation
gnome-terminal-server refuses to start under a non-UTF-8 locale (ANSI_X3.4-1968) and the D-Bus session bus kept re-spawning it with the same broken environment. LANG=C.UTF-8 is now set before entrypoint.sh starts the session bus and GNOME Shell, and DISPLAY=:0 puts the Xwayland display into the agent's Bash environment for X11-only apps.
Closed
3 tasks
inference-gateway-maintainer
Bot
marked this pull request as ready for review
November 9, 2026 23:27
inference-gateway-maintainer
Bot
requested a review
from a team
as a code owner
November 9, 2026 23:27
DISPLAY alone does not let an X11 app reach Xwayland. The server asks for the session's auth cookie, whose file name is random per session, so the app fails with "Authorization required".
Contributor
|
🎉 This PR is included in version 0.253.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #1786
Summary
The computer image ran the whole desktop session with the POSIX locale (ANSI_X3.4-1968), so gnome-terminal-server refused to start and the D-Bus session bus kept re-spawning it with the same broken environment. The image env now sets LANG=C.UTF-8, so the locale is in place before computer/entrypoint.sh starts the session bus and GNOME Shell, and D-Bus-activated apps like gnome-terminal inherit it.
Changes
An earlier commit on this branch also set DISPLAY=:0 for X11-only apps. It is removed again: DISPLAY alone does not reach Xwayland, which asks for the session's auth cookie, so an X11 app fails with "Authorization required". Making X11-only apps work needs XAUTHORITY handled and is left for a separate change.
Verification
docker run -einto an existing local image, which is equivalent for env but is not a build of this branch.