Skip to content

v0.5.7

Choose a tag to compare

@github-actions github-actions released this 21 May 13:19
· 496 commits to main since this release
ec46696

[0.5.7] - 2026-05-21

Feature release wrapping up #247 (per-item debloat picker, four phases) and #254 (locale + edition save flow, three phases), plus the OEM-perm regression #266/#267 caught at the same time.

Highlights

Per-item debloat with CLI + Qt + TTY pickers, Windows-guest timezone wiring via dockur's TZ env var, GUI Settings → Container/VM Localization dropdowns + auto-recreate on save, and winpodx pod recreate [--wipe-storage].

  • winpodx debloat -- per-item catalog driven by data/debloat/items.toml (11 items, 4 presets). --list / --preset / --items / --undo / --menu on the CLI plus a Qt picker dialog with checkboxes + risk badges (#247).
  • Windows guest timezone is now host-autodetected and passed to dockur via the TZ env var; cfg.pod.timezone GUI dropdown + winpodx config set pod.timezone --auto + setup-wizard prompt all wired (#254).
  • Settings → Container/VM gains Language / Region / Keyboard / Timezone dropdowns alongside the existing Edition picker, with a unified save flow that auto-runs _recreate_container (or _wipe_pod_storage first when language/edition changed) on dirty fields (#254 P3).
  • winpodx pod recreate [--wipe-storage] -- regenerates compose.yaml + destroys/recreates the container (Windows disk preserved by default; --wipe-storage triggers a fresh Windows install for language/edition changes) (#254 P1).
  • Config.save() now persists pod.language / pod.region / pod.keyboard / pod.timezone / pod.tuning_profile -- pre-this fix those five fields were loaded but never written back, silently dropping winpodx config set on the next save.

Added

  • winpodx debloat --menu text-mode picker (#247, phase 4). Headless-friendly alternative to the Qt dialog for users on SSH / TTY-only installs. Pure input() + print() -- no curses dependency, no display server, no terminal capability sniffing. Loop renders the catalog as a numbered list with current selection state + preset name + risk badges + (one-way) tags, then prompts for a command: <N> toggles item N, <name> toggles by name, p lists presets, p <name> switches preset, a applies, q quits, h shows help. run_menu accepts injectable input_fn / print_fn so the same code path drives interactive shells and CI integration tests with mocked stdin.
  • GUI debloat picker dialog (#247, phase 3). Tools → Debloat now opens a modal dialog (gui/debloat_picker.py) instead of running the normal preset blind. Every catalog item is a row with a checkbox + colored risk badge (green / amber / red) + tooltip showing the description; preset radios (Normal / Full / Performance / Speed / Custom) seed the checkbox state, and toggling any item flips the radio to Custom. Apply runs the selection via the existing run_via_transport channel; Cancel exits without touching the guest. One-way items (onedrive, startup_programs) carry a "(one-way)" tag in the row so users see at a glance which selections can't be reverted via #247 P2's --undo path.
  • winpodx debloat --undo + per-item undo scripts + state JSON tracking (#247, phase 2). Each catalog entry can carry an optional undo_script field; reversible items (9 of the 11) now ship an undo/<name>.ps1 sibling that reverts the apply. winpodx debloat --undo --items <list> (or --undo --preset <name>) runs the undo path; mixed selections containing one-way items (onedrive, startup_programs) abort with a clear "items have no undo path" error so a partial undo doesn't leave the user thinking the one-way item was reverted too. The apply orchestrator now writes a per-item entry to %ProgramData%\winpodx\debloat-applied.json after each successful apply, and the undo orchestrator removes it -- groundwork for the GUI picker (phase 3) to show "currently applied" state next to each checkbox.
  • winpodx debloat --list / --preset / --items (#247, phase 1). Refactors the previously-monolithic winpodx debloat (which always ran the same 70-line debloat.ps1 script) into a per-item catalog + selection resolver. The catalog ships at data/debloat/items.toml with 11 items (telemetry, ads, onedrive, sysmain, web_search, widgets, scheduled_tasks, startup_programs, visual_effects, search_indexing, transparency), each backed by a small per-item .ps1 under scripts/windows/debloat/. Four presets (normal, full, performance, speed) seed the most common selections; bare winpodx debloat (no args) keeps the previous behaviour by defaulting to normal (telemetry + ads). --list prints the full catalog + presets for inspection without touching the guest. --items accepts a comma-separated explicit name list and overrides --preset when both are given. Out of scope for this phase (tracked under #247): per-item undo, GUI picker dialog, TTY-menu (--menu).
  • GUI Settings → Container / VM card gains Localization dropdowns (#254, phase 3). Four new rows alongside the existing Edition / CPU / RAM picks: Language, Region, Keyboard, Timezone. Each row's first option is Auto (...) and maps to an empty TOML string (= host autodetect at compose time); the timezone row's auto-label surfaces the live detect_timezone() result so the user can see what would land on the guest. Save handler routes the recreate prompt through one of two paths: a plain "Restart now?" when only timezone / CPU / RAM / port / user are dirty (Windows disk preserved, OEM tzutil re-applies on every recreate), or a louder "Wipe and reinstall now?" when Edition or any of language / region / keyboard is dirty (dockur honors those env vars only on the initial Windows install, so a plain recreate would silently no-op). Accepting the wipe prompt calls the same _wipe_pod_storage helper as winpodx pod recreate --wipe-storage.
  • winpodx config set pod.<key> --auto shorthand (#254, phase 2). Resolves the host-detected value for the named key instead of taking it from the positional <value> argument. Currently wired: pod.timezone (IANA name from utils.locale.detect_timezone). Other locale keys (language / region / keyboard) print a clear "not yet supported" error pointing at #254 and exit non-zero; their detectors land in a follow-up. --auto and a positional <value> are mutually exclusive.
  • winpodx setup interactive timezone prompt (#254, phase 2). Wizard now prompts for cfg.pod.timezone after the CPU / RAM rows, defaulting to the host-detected IANA zone. Non-interactive setup (install.sh's call path) leaves cfg.pod.timezone at its default empty string so the compose generator's host autodetection still fires at first boot.
  • cfg.pod.timezone — Windows guest timezone wiring (#254, phase 1). New config knob. Empty string (the default) triggers host autodetection at compose time via timedatectl show --property=Timezone --value, falling back to readlink /etc/localtime then /etc/timezone then UTC. The IANA result is translated to a Windows TZ ID through the CLDR-derived data/locale/windows_zones.toml table (~150 entries from the 001 wildcard subset). The resolved Windows TZ ID lands in <oem_dir>/timezone.txt; the OEM install.bat reads it on first boot and runs tzutil /s "<id>" instead of the previous unconditional tzutil /s "UTC". Explicit IANA names or bare Windows TZ IDs in the TOML are honored; detection-failure UTC skips the file so the guest stays on its current zone rather than being forced onto UTC. Host autodetection covers the @ismikes report (#204) that fresh installs default the Windows guest to UTC regardless of host locale.
  • winpodx pod recreate [--wipe-storage] subcommand (#254, phase 1). Regenerates compose.yaml from the current config, then destroys and re-creates the container -- a cleaner primitive than winpodx pod restart for picking up first-boot env knob changes (timezone, edition, backend). --wipe-storage also destroys the Windows disk volume / bind-mount so dockur re-runs the full install, which is required for language / region / keyboard / edition changes to actually reach the guest (dockur honors those env vars only on the initial Windows install). The wipe path prompts for an explicit WIPE confirmation.
  • config/oem/install.bat reads C:\OEM\timezone.txt if present (#254, phase 1). Falls back to the previous tzutil /s "UTC" behaviour when the file is absent.
  • data/locale/windows_zones.toml — IANA -> Windows TZ ID mapping table (#254, phase 1). Shipped under share/winpodx/data/locale/ via the pyproject shared-data layout. Refresh helper (scripts/ci/refresh_windows_zones.py) deferred to a follow-up.

Changed

  • Timezone wiring redesigned around dockur's native TZ env var (#267, refactor of #254 P1). The original P1 design dropped a timezone.txt file into the OEM bind-mount dir and added a tzutil block to install.bat to consume it. That forced an always-copy OEM dir path so per-config files could land without polluting the source bundle, which re-introduced the parent-dir traversal problem PR #95 originally dodged: dockur's in-container OEM cp runs as a non-root sub-UID that can't traverse a 0700 ~/.config or ~/.local ancestor, producing cp: cannot stat /oem/./<file>: Permission denied for every OEM file at first boot. Switching to dockur's TZ env var (which already drives the <TimeZone> element in its Sysprep unattend.xml) removes the OEM-file requirement entirely, lets _find_oem_dir go back to its pre-#254 two-regime layout (bundle-direct when user-writable / copy when read-only), and eliminates the umask-077 perm trap. install.bat's old tzutil block was removed; utils/locale.py (host detection + IANA→Win mapping table) stays in place for GUI display and the wizard's auto-default.

Fixed

  • OEM cp Permission denied cascade on fresh installs with umask 077 (#267). Symptom: dockur's first-boot OEM-copy step failed with cp: cannot stat '/oem/./<file>': Permission denied for every OEM file -- container's non-root sub-UID couldn't traverse the 0700 ~/.config/ ancestor introduced by #254 P1's always-copy OEM dir path. Fixed by reverting to bundle-direct OEM mounting when the user owns the bundle (see Changed entry above for the deeper refactor).
  • Config.save() now persists pod.language / pod.region / pod.keyboard / pod.timezone / pod.tuning_profile (#254, phase 1). Pre-this fix those five fields were loaded from winpodx.toml but never written back -- programmatic changes (winpodx config set pod.language ...) were silently dropped on the next save. Hand-edited values still survived because nothing was overwriting them. Now all five fields round-trip through save/load.