Repository navigation
Conversation
Read the saved locale and translation preferences before the Wayland session starts. Honor an explicit container LC_ALL and source user environment hooks afterwards.
|
Thanks for opening this pull request! Be sure to follow the pull request template! |
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.
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-localercbefore starting the Ubuntu KDE Wayland session. Keep an explicit containerLC_ALLsetting 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-ls193image started Plasma in English with Chinese entries inplasma-localerc. A test image built from that release with the patched launcher in/defaults/startwm_wayland.shkept the default English on a fresh config. The test wrote the Chinese preference with KDE's config tools and useddocker restartwith the same mounted/config. The new Plasma process reportedLANG=zh_CN.UTF-8andLANGUAGE=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_ALLwon 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_ALLwhen the saved preference is English, and translates Konsole with onlyTranslations/LANGUAGEset.Source / References