Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Apply KDE's saved language in Wayland sessions - #454

Open
Jocab-B wants to merge 1 commit into
linuxserver:ubuntu-kdefrom
Jocab-B:fix/ubuntu-kde-wayland-locale
Open

Jocab-B wants to merge 1 commit into
linuxserver:ubuntu-kdefrom
Jocab-B:fix/ubuntu-kde-wayland-locale

Conversation

@Jocab-B

@Jocab-B Jocab-B commented Nov 25, 2026 •

Copy link
Copy Markdown

linuxserver.io

  • I have read the contributing guideline and understand that I have made the correct modifications.

  • An LLM assisted me in writing the code or text for this PR

  • An LLM agent wrote the code or text for this PR

OpenAI Codex investigated the startup path, drafted the change and this description, and ran the checks below.

Description

Read the saved KDE language from plasma-localerc before starting the Ubuntu KDE Wayland session. Keep an explicit container LC_ALL setting and let the existing KDE environment hooks apply afterwards.

Benefits of this PR and context

The language selected in KDE System Settings can take effect when the Wayland desktop starts again. This restores an existing desktop preference for anyone who changes their language.

How Has This Been Tested?

On an ARM64 Jetson AGX Orin, the official 2cb25acc-ls193 image started Plasma in English with Chinese entries in plasma-localerc. A test image built from that release with the patched launcher in /defaults/startwm_wayland.sh kept the default English on a fresh config. The test wrote the Chinese preference with KDE's config tools and used docker restart with the same mounted /config. The new Plasma process reported LANG=zh_CN.UTF-8 and LANGUAGE=zh_CN, and Konsole returned Chinese translations. No user environment hook was present for this check.

The ARM64 HTTPS service returned a successful response in each case. An explicit Chinese LC_ALL won over a saved English preference. In a separate case, an existing user environment hook still overrode the saved value. Bash syntax and ShellCheck comparison against the upstream script passed with no new findings.

On amd64, a clean build of the full repository Dockerfile completed with the official base images fetched by digest. The built image starts Wayland, serves HTTPS, and applies the saved language with the same mounted config after restart. It also retains English with a fresh config, honors an explicit Chinese LC_ALL when the saved preference is English, and translates Konsole with only Translations/LANGUAGE set.

Source / References

Read the saved locale and translation preferences before the Wayland session starts. Honor an explicit container LC_ALL and source user environment hooks afterwards.
@github-actions

Copy link
Copy Markdown

Thanks for opening this pull request! Be sure to follow the pull request template!

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.

1 participant