Bug: Hide CUPS/PPD options on Windows builds #48

Closed
opened 2026-08-24 23:24:04 +01:00 by gronod · 0 comments
Owner

Description

In Stage 2 (Print Layout), the "PPD Uncorrected Passthrough (Fallback)" option is rendered inside #cupsOptionsGroup. Because PPDs and CUPS filters are specific to Linux/macOS, this setting is completely irrelevant to Windows, has no effect in the Windows print backend, and causes confusion for Windows users.

Root Cause

#cupsOptionsGroup in src/index.html is displayed unconditionally without checking whether the client platform is Windows.

Solution

  1. In src/js/printtarg.js, check if the platform is Windows (navigator.userAgent.includes("Windows")).
  2. If running on Windows, hide #cupsOptionsGroup (classList.add("hidden") or display: none).
  3. Bump patch version 0.1.6 -> 0.1.7.
### Description In Stage 2 (Print Layout), the "PPD Uncorrected Passthrough (Fallback)" option is rendered inside `#cupsOptionsGroup`. Because PPDs and CUPS filters are specific to Linux/macOS, this setting is completely irrelevant to Windows, has no effect in the Windows print backend, and causes confusion for Windows users. ### Root Cause `#cupsOptionsGroup` in `src/index.html` is displayed unconditionally without checking whether the client platform is Windows. ### Solution 1. In `src/js/printtarg.js`, check if the platform is Windows (`navigator.userAgent.includes("Windows")`). 2. If running on Windows, hide `#cupsOptionsGroup` (`classList.add("hidden")` or `display: none`). 3. Bump patch version `0.1.6` -> `0.1.7`.
Sign in to join this conversation.