Repository navigation
v0.5.7
[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 bydata/debloat/items.toml(11 items, 4 presets).--list/--preset/--items/--undo/--menuon 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
TZenv var;cfg.pod.timezoneGUI 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_storagefirst when language/edition changed) on dirty fields (#254 P3). winpodx pod recreate [--wipe-storage]-- regeneratescompose.yaml+ destroys/recreates the container (Windows disk preserved by default;--wipe-storagetriggers a fresh Windows install for language/edition changes) (#254 P1).Config.save()now persistspod.language/pod.region/pod.keyboard/pod.timezone/pod.tuning_profile-- pre-this fix those five fields were loaded but never written back, silently droppingwinpodx config seton the next save.
Added
winpodx debloat --menutext-mode picker (#247, phase 4). Headless-friendly alternative to the Qt dialog for users on SSH / TTY-only installs. Pureinput()+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,plists presets,p <name>switches preset,aapplies,qquits,hshows help.run_menuaccepts injectableinput_fn/print_fnso 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 existingrun_via_transportchannel; 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--undopath. winpodx debloat --undo+ per-item undo scripts + state JSON tracking (#247, phase 2). Each catalog entry can carry an optionalundo_scriptfield; reversible items (9 of the 11) now ship anundo/<name>.ps1sibling 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.jsonafter 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-monolithicwinpodx debloat(which always ran the same 70-linedebloat.ps1script) into a per-item catalog + selection resolver. The catalog ships atdata/debloat/items.tomlwith 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.ps1underscripts/windows/debloat/. Four presets (normal,full,performance,speed) seed the most common selections; barewinpodx debloat(no args) keeps the previous behaviour by defaulting tonormal(telemetry + ads).--listprints the full catalog + presets for inspection without touching the guest.--itemsaccepts a comma-separated explicit name list and overrides--presetwhen 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 livedetect_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_storagehelper aswinpodx pod recreate --wipe-storage. winpodx config set pod.<key> --autoshorthand (#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 fromutils.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.--autoand a positional<value>are mutually exclusive.winpodx setupinteractive timezone prompt (#254, phase 2). Wizard now prompts forcfg.pod.timezoneafter the CPU / RAM rows, defaulting to the host-detected IANA zone. Non-interactive setup (install.sh's call path) leavescfg.pod.timezoneat 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 viatimedatectl show --property=Timezone --value, falling back toreadlink /etc/localtimethen/etc/timezonethenUTC. The IANA result is translated to a Windows TZ ID through the CLDR-deriveddata/locale/windows_zones.tomltable (~150 entries from the001wildcard subset). The resolved Windows TZ ID lands in<oem_dir>/timezone.txt; the OEMinstall.batreads it on first boot and runstzutil /s "<id>"instead of the previous unconditionaltzutil /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). Regeneratescompose.yamlfrom the current config, then destroys and re-creates the container -- a cleaner primitive thanwinpodx pod restartfor picking up first-boot env knob changes (timezone, edition, backend).--wipe-storagealso 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 explicitWIPEconfirmation.config/oem/install.batreadsC:\OEM\timezone.txtif present (#254, phase 1). Falls back to the previoustzutil /s "UTC"behaviour when the file is absent.data/locale/windows_zones.toml— IANA -> Windows TZ ID mapping table (#254, phase 1). Shipped undershare/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
TZenv var (#267, refactor of #254 P1). The original P1 design dropped atimezone.txtfile into the OEM bind-mount dir and added atzutilblock toinstall.batto 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~/.configor~/.localancestor, producingcp: cannot stat /oem/./<file>: Permission deniedfor every OEM file at first boot. Switching to dockur'sTZenv var (which already drives the<TimeZone>element in its Sysprep unattend.xml) removes the OEM-file requirement entirely, lets_find_oem_dirgo 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 oldtzutilblock 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 deniedcascade on fresh installs with umask 077 (#267). Symptom: dockur's first-boot OEM-copy step failed withcp: cannot stat '/oem/./<file>': Permission deniedfor 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 persistspod.language/pod.region/pod.keyboard/pod.timezone/pod.tuning_profile(#254, phase 1). Pre-this fix those five fields were loaded fromwinpodx.tomlbut 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.