fix SELKIES_DESKTOP to accept case-insensitive values (e.g. True) - #169
fix SELKIES_DESKTOP to accept case-insensitive values (e.g. True)#169junkerderprovinz wants to merge 1 commit into
Conversation
|
Gentle nudge whenever you have a moment: this is a one-line change and shows |
|
For the reviewer: this fixes #164 ( |
|
I am building out base images tomorrow with updated core and pixelflux code, bool insensitivity, and the player fix will be in them. I appreciate the PR and will use this code, but merging it cuts another baseimage and I need to pile up a bunch of fixes. Also there are other instances of case insensitive bools IE: |
|
Perfect, thanks @thelamer — batching them into one base-image cut makes total sense, and I'm glad the code is useful. Good call generalising the bool handling: you're right that No need to keep these two PRs open on my account; feel free to close #168 and #169 whenever tomorrow's build lands with the fixes in it. Appreciate you folding them in, and the heads-up on the other spots. |
Description:
SELKIES_DESKTOP=True(or any non-lowercase spelling) does not enable the desktop panel — only the exact lowercaseSELKIES_DESKTOP=trueworks.root/defaults/startwm_wayland.shis the only consumer and compared the raw value case-sensitively:So
True/TRUEfall through to plainlabwcwithoutselkies-desktop. This lowercases the value first, matching the idiom already used throughoutinit-selkies-config/run(${HARDEN_DESKTOP,,},${DISABLE_SUDO,,},${RESTART_APP,,}, etc.):Benefits of this PR and context:
Several other env examples in the README use the
Truespelling, so users reasonably setSELKIES_DESKTOP=Trueand silently get no desktop. This makes the toggle case-insensitive like every other boolean env in the image. closes #164How Has This Been Tested?
bash -n root/defaults/startwm_wayland.shpasses. Behavioural check of the changed condition:True,true,TRUE,tRuE→ desktop path (selkies-desktop);false, empty/unset → plainlabwc(unchanged). One-line change; file mode (100755) and LF line endings preserved. No Dockerfile ENV default exists for this variable, so noDockerfile/Dockerfile.aarch64change is needed and the README stays valid. Reviewer runtime check: launch in Wayland mode (PIXELFLUX_WAYLAND=true) with-e SELKIES_DESKTOP=Trueand confirm the labwc panel + selkies-desktop start.Source / References:
closes #164