Skip to content

v0.5.1

Choose a tag to compare

@github-actions github-actions released this 14 May 12:53
· 567 commits to main since this release
579dcd1

Maintenance + ergonomics release. Wider curated Windows edition support, headless install ergonomics, FreeRDP 2 compatibility fix for Ubuntu 22.04 LTS users, and an internal Qt refactor that future-proofs the GUI codebase. Nine PRs land between v0.5.0 and this tag.

Highlights

Pick LTSC IoT, Win10 LTSC, Tiny, Server, or your own ISO — and winpodx app run <app> now works on Ubuntu 22.04's default FreeRDP 2.11. This release is mostly a follow-up to user-reported pain points on v0.5.0: more Windows editions selectable from one place, a real --win-version flag on install.sh and winpodx setup, and a RemoteApp launch bug that opened Microsoft Store instead of the real app on FreeRDP 2.x hosts.

  • Windows edition picker (#178, #183, #185, #186) — cfg.pod.win_version now accepts the full Win10+ curated set (11, 10, ltsc11, ltsc10, iot11, tiny11, tiny10, 2025, 2022, 2019, 2016) from the GUI Settings → Container/VM card, winpodx setup --win-version, or install.sh --win-version. Custom ISOs documented as a manual workaround in docs/ARCHITECTURE.md. (reported by @gabe39, #178)
  • FreeRDP 2 / Ubuntu 22.04 LTS compatibility (#189) — winpodx app run <app> no longer opens Microsoft Store on FreeRDP 2.11.x. Win32 RemoteApp launches now use FreeRDP's separate /app: + /app-name: + /app-cmd: flags instead of FreeRDP 3's combined /app:program:X,name:Y,cmd:Z syntax. (reported by @poetman, #158)
  • ARM64 (aarch64) host support — Pi 5 and Ampere systems install cleanly (#176, #177). Host arch is detected at install / setup time; aarch64 hosts default to dockurr/windows-arm and the compose template emits -cpu host without the x86-only arch_capabilities=off sub-option that previously crashed QEMU on host-arm-cpu with Property 'host-arm-cpu.arch_capabilities' not found. New aarch64 CI job catches future regressions. Remaining Phase 4 work — Windows-on-ARM RDP listener stabilisation — tracked under #141 / #140. (reported by @tslpre, #140)
  • Discovery cleanup (#182) — winpodx app refresh no longer re-imports the reverse-open Linux-app shims as Windows apps, and a self-heal pass purges any existing polluted entries on the next refresh.
  • Weekly Docker Hub digest watcher (#180) — picks up silent dockur rebuilds (security patches that don't get a release tag) that the release-tag-only watcher misses.
  • Internal: WinpodxWindow Qt class decomposed from 2745 lines into a 148-line orchestrator + 10 single-responsibility mixins (#181). Zero behaviour change; maps cleanly to a future Rust port.
  • Always-on bottom log bar + live log-level picker. Two new pieces working together:
    • A persistent 2-line log ticker at the very bottom of the main window — visible regardless of which page is active. Latest two log_signal lines (winpodx logger + pod tail when cfg.logging.level == "RAW") flash there in real time.
    • Terminal tab gets a DEBUG / INFO / WARNING / ERROR / CRITICAL / RAW dropdown that retargets the running logger AND persists to cfg.logging.level. RAW also enables the parallel podman logs -f stream (with [pod] prefix), so dockur / QEMU / Windows-side messages flow through both the Terminal full view and the bottom bar — useful for "Windows isn't booting" / "ISO download stuck" / agent-down triage.
    • Tails are started once at GUI launch and stay running, so the bottom bar updates regardless of which page you're on. The Terminal tab's Live (app) / Live (pod) / Stop tail buttons were removed (now redundant with the always-on design).
  • Settings save with container recreate now auto-runs the full bring-up (wait Windows boot → agent settle → apply runtime fixes → discover apps → push reverse-open manifest) with a progress dialog. No more "I changed the edition and now my apps don't work" workflow.

Added

  • winpodx setup --win-version EDITION and install.sh --win-version VER flags for headless edition selection on fresh installs. New WINPODX_WIN_VERSION env var equivalent. Documented in docs/INSTALL.md "Choosing the Windows edition" section. (#178, #185, #186)
  • GUI Settings → Container/VM card gains a "Windows Edition" combo populated from _KNOWN_WIN_VERSIONS. Read-only dropdown; custom dockur tags outside the curated list are settable via direct winpodx.toml edit (see docs/ARCHITECTURE.md "Advanced: Custom Windows ISO"). (#178, #183)
  • _KNOWN_WIN_VERSIONS constant in core/config.py (12 curated editions). PodConfig.__post_init__ normalises whitespace + case, warns on unknown values without rejecting them. (#178, #183)
  • ARM64 (aarch64) Linux host support — Phase 1+2+3 of #141. install.sh and core/config.py:_default_pod_image detect host architecture via uname -m and route aarch64 hosts to the dockurr/windows-arm image (matching the dockur project's separate ARM build). core/pod/compose.py drops arch_capabilities=off from the -cpu host flag on aarch64 — that sub-option is x86-only KVM CPUID hardening and QEMU's host-arm-cpu machine model rejected it with Property 'host-arm-cpu.arch_capabilities' not found, the exact symptom Pi 5 users hit at winpodx pod start. The new aarch64 CI matrix entry (#177) runs the test suite on ubuntu-24.04-arm so architecture-aware codepaths don't regress silently. Remaining Phase 4 work — Windows-on-ARM RDP listener stabilisation, rdprrap compatibility on xtajit x86 emulation — tracked separately under #141 + #140. (reported by @tslpre, #140 — Pi 5 / RaspiOS Trixie repro with full QEMU error)
  • check-windows-updates workflow gains a :latest digest drift detector — opens a "silent rebuild" tracking issue when digest changes without a release-tag bump. Two new fields in config/oem/VERSIONS.txt: dockur-digest= and dockur-arm-digest=. (#180)
  • docs/ARCHITECTURE.md "Advanced: Custom Windows ISO" section documents the manual win_version = "custom" + compose.yaml mount workaround for users with their own pre-loaded ISOs. Korean mirror updated. (#178, #184)
  • CONTRIBUTING.md "Crediting contributors in Highlights" section codifies the inline (by @user, #PR) / (reported by @user, #issue) convention used in CHANGELOG Highlights. Korean mirror updated. (#187)
  • New [logging] config section with level field (DEBUG | INFO | WARNING | ERROR | CRITICAL | RAW). setup_logging() reads it on startup so all winpodx CLI / GUI runs pick up the chosen level. Default INFO; unknown values fall back to INFO with no rejection. Terminal tab dropdown changes the live logger AND persists to TOML. RAW is a winpodx-only meta-level: pins the Python logger to DEBUG AND turns on a parallel podman logs -f tail in the Terminal so dockur / QEMU / Windows-side output interleaves with winpodx's own log lines (pod-log lines are prefixed [pod] and dimmed for distinguishability).
  • New License GUI tab. Shows the MIT license text inline + a "Third-party components" section listing the upstream projects winpodx ships or depends on (dockur, FreeRDP, PySide6/Qt, rdprrap, stascorp/rdpwrap, rcedit, Catppuccin) with their respective licenses. Resolves the LICENSE file via bundle_dir() so it renders correctly across every install mode (source checkout, wheel, FHS, installer drop).
  • Auto bring-up after container recreate. Changing CPU / RAM / port / user / Windows edition in the GUI Settings page used to call _generate_compose + _recreate_container and stop — the freshly-recreated guest had no booted Windows (different ISO if edition changed -> fresh download), no agent, no rdprrap multi-session apply, no app discovery, and no reverse-open manifest, so users had to run several CLI commands manually after every recreate. The save handler now chains the full bring-up automatically on a worker thread: (1) wait for pod_status == RUNNING AND check_rdp_port (bounded by cfg.install.wait_ready_stage2_secs, default 900s), (2) wait for AgentClient.health() + host token ready (bounded by cfg.install.wait_ready_stage3_secs, default 1800s — long because fresh-ISO download + Sysprep dominate this stage), (3) winpodx.core.provisioner.apply_windows_runtime_fixes for rdprrap activation + RDP timeouts + OEM baseline, (4) discovery.scan + persist_discovered, (5) winpodx host-open refresh for the reverse-open manifest. A new BringUpProgressDialog (window-modal, indeterminate progress bar, Cancel button) renders each phase's label + sub-detail; the same lines also feed the always-on bottom log bar via the existing log_signal fan-out. Cancel is best-effort — phase 1/2 polling loops honour the event within their 2 s cadence, but long blocking apply / discover / sync calls in phase 3-5 cannot be interrupted mid-flight (the button disables itself with "Cancelling..." text so the user knows the request landed). Implemented as a new BringUpMixin in src/winpodx/gui/_main_window_bringup.py, three new signals on WinpodxWindow (bringup_phase, bringup_done, bringup_started), and a kick at the end of the existing _recreate worker in _main_window_settings.py. +5 tests (test_main_window_bringup.py) cover happy-path ordering, phase-1 cancellation, phase-3 failure surfacing, non-blocking entry point, and fresh-cancel-event-per-run.

Changed

  • Qt WinpodxWindow decomposed into mixins. src/winpodx/gui/main_window.py shrinks from 2745 lines to 148 (-95%); page builders, page behaviour, chrome construction, pod control, and worker orchestration each move to their own private _main_window_*.py mixin module. Pure structural refactor — zero functional change, all method resolution preserved via MRO. (#181)
  • core/discovery._is_junk_entry now rejects executables under C:\Users\Public\winpodx\reverse-open\bin\ (queried via the new reverse_open.sync.is_guest_shim_path helper) so the host's reverse-open Linux-app shims aren't mistakenly imported as Windows apps. persist_discovered() runs a _purge_reverse_open_entries self-heal pass that drops any existing polluted entries on the next refresh. scripts/windows/discover_apps.ps1 Add-Result filters the same path on the guest side as defense in depth. (#182)
  • docs/USAGE.md win_version TOML example updated to list the new curated set instead of the pre-#183 subset. Korean mirror updated. (#184)
  • License tab third-party acknowledgments completed. Added libvirt-python (LGPL-2.1+), docker / docker-py (Apache-2.0), tomli (MIT), and the getrandom Rust crate (MIT OR Apache-2.0) used in the reverse-open shim. The optional [libvirt] and [docker] extras now have their LGPL/Apache attribution surfaced in the GUI per upstream license terms; the reverse-open shim's dual-licensed Rust dependency is acknowledged for parity with what's statically linked into the vendored .exe.
  • BringUpProgressDialog detail. The auto bring-up modal now shows a 5-phase checklist with per-phase elapsed times, attempt counters during the polling phases (Pod ready / Agent ready), and an expandable live tail of the dockur container's podman logs -f output so users can see what Windows is actually doing during the long ISO-download + Sysprep wait (Phase 2 can take 30+ minutes on a fresh edition). The pod-log expander spawns its own short-lived podman logs -f subscription bounded to the dialog's lifetime so the live tail is visible regardless of cfg.logging.level, and also receives the always-on [pod]-prefixed lines that flow through WinpodxWindow.log_signal (the same fan-out introduced for the always-on bottom log bar). bringup_phase now carries a stable phase-ID slug (phase_1_pod / phase_2_agent / phase_3_fixes / phase_4_discovery / phase_5_refresh) as its first arg so the dialog can route emissions to the correct checklist row independent of presentational copy. +6 dialog-side tests added.

Fixed

  • winpodx app run <slug> no longer opens Microsoft Store on FreeRDP 2.x hosts (Ubuntu 22.04 LTS), AND no longer fails with Unexpected keyword on FreeRDP 3.x hosts (Tumbleweed, Fedora 42/43 with FreeRDP 3 PPA, etc.). Win32 RemoteApp now branches on the detected FreeRDP major version: FreeRDP 3 keeps the combined /app:program:X,name:Y,cmd:Z syntax (FreeRDP 3 parses /app: as <key>:<value>,... and rejects bare paths with Unexpected keyword at the C: drive prefix); FreeRDP 2 uses the separate /app:PATH + /app-name:NAME + /app-cmd:CMD flag form (FreeRDP 2 parses the combined string as a literal program path, fails the launch, and Windows shell handler falls back to Microsoft Store). Version is detected once per process via xfreerdp --version and cached. UWP path is unchanged. (reported by @poetman, #158)
  • __version__ in src/winpodx/__init__.py was stale at 0.4.3 and didn't track the package version. Bumped to 0.5.1 with this release; winpodx --version, the migrate version comparison, and the install marker now match pyproject.toml.
  • YAML-injection hardening on the four [pod] config fields that land inside the compose template's double-quoted scalars. A hand-edited winpodx.toml with win_version = '11"\nEVIL: "x' (or the same shape in container_name / image / disk_size) used to break out of its YAML scalar and inject arbitrary env keys into the dockur service. Two-layer fix: core/config.py:PodConfig.__post_init__ rejects dangerous chars (", \\, \n, \r, $, `) and validates disk_size against a regex; core/pod/compose.py:_build_compose_content now runs all four values through _yaml_escape as defense in depth. cli/setup_cmd.py re-runs __post_init__ after the --win-version flag assignment so direct attribute mutation can't bypass the validation either. Five new tests cover dangerous-char reject, disk_size regex, and the YAML escape boundary.
  • License tab acknowledgments table corrected. Smoke + legal review found three mistakes: rdprrap was listed as GPL-3.0 (it's MIT, same maintainer); Catppuccin Mocha was credited as the GUI palette (theme is actually GitHub Primer Dark — see src/winpodx/gui/theme.py); PySide6 license string was imprecise. Catppuccin removed; rdprrap moved to MIT; GitHub Primer Dark added with the GitHub Inc. 2013 copyright; PySide6 tightened to LGPL-3.0-only WITH Qt-LGPL-exception-1.1. Three additional rdprrap-NOTICE upstreams surfaced in the GUI for parity with what the OEM zip ships: stascorp/rdpwrap (Apache-2.0), llccd/TermWrap (MIT), llccd/RDPWrapOffsetFinder (MIT). Optional-extras dependencies (Pillow, cairosvg, pyxdg) also added with their licenses.

Changed

  • .gitignore extended for AI-tooling-footprint hygiene per CLAUDE.md Section 8 (.mcp.json, AGENTS.md, CLAUDE.local.md, demo.png) plus standard scratch / editor / OS patterns and a defensive secret-shape denylist (*.env, *.pem, *.key, id_rsa*, etc. — currently no such files in tree).
  • Arch Linux status accuracy. The README.md "Supported distros" row claimed pacman / AUR | Supported, and docs/INSTALL.md instructed yay -S winpodx. Neither is currently true — the AUR publish workflow is wired but secret-gated on AUR_SSH_PRIVATE_KEY, which has not been provisioned, so no winpodx AUR package has shipped. Updated the README row to "Source install supported · AUR package pending maintainer onboarding", replaced the INSTALL.md "Arch Linux (AUR)" section with install.sh guidance, and clarified the native-package-manager intro. Korean mirrors updated.