Skip to content

fix(computer): ship a UTF-8 locale in the image env - #1788

Merged
edenreich merged 2 commits into
mainfrom
fix/issue-1786
Nov 9, 2026
Merged

edenreich merged 2 commits into
mainfrom
fix/issue-1786

Conversation

@inference-gateway-maintainer

@inference-gateway-maintainer inference-gateway-maintainer Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

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

  • computer/Dockerfile: add ENV LANG=C.UTF-8 to the session environment inherited by GNOME Shell, the D-Bus session bus and every process it activates

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

  • Ran the local computer image with and without LANG=C.UTF-8 in its env. Without it, gnome-terminal fails with "Process org.gnome.Terminal exited with status 8". With it, the terminal window opens on the first try.
  • The value was injected with docker run -e into an existing local image, which is equivalent for env but is not a build of this branch.
  • The pre-commit hook passes on the second commit. The first commit bypassed it because the agent workflow installed a golangci-lint built with Go 1.26, fixed in ci: bump golangci-lint to v2.15.0 in the agent workflows .github#230.
  • The computer image is built and published by CI on the next release, so no manual release step and no other repos are affected.

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.
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".
@edenreich edenreich changed the title fix(computer): ship a UTF-8 locale and DISPLAY in the image env fix(computer): ship a UTF-8 locale in the image env Nov 9, 2026
@edenreich
edenreich merged commit c72ec71 into main Nov 9, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-1786 branch November 9, 2026 23:53
@edenreich edenreich moved this from QA to Done in 2026 Nov 9, 2026
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.253.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[BUG] gnome-terminal cannot start on the computer image - no UTF-8 locale

1 participant