• v0.1.2 41c7fc5356

    ben released this 2026-11-14 11:00:05 +00:00 | 15 commits to main since this release

    Windows becomes a platform this project supports, rather than one it happens to build for.

    Two things were broken, not just untidy

    Save, Save As and Export Project did nothing on Windows. All three asked zenity for a path — on every platform — and Windows has no zenity: no dialog, no file, no message. Every picker goes through the system dialog there now, and a cancelled save says so instead of leaving the status line unchanged.

    The app wrote its settings into whatever folder it was started from. The data folder was spelled XDG_DATA_HOME or $HOME/.local/share in five places. Windows has neither, so the path came out relative: settings, presets, palettes, saved shape sets, the recent list and the crash log all landed next to the program. src/paths.rs decides once — %APPDATA%\opendither on Windows, ~/Library/Application Support/opendither on macOS, $XDG_DATA_HOME/opendither on Linux — and the answer is always absolute. opendither --diagnose prints the folder this run uses.

    The rest

    • Text layers and ASCII mode draw on Windows. Both carried their own copy of a list of Linux font folders; families now come from the font's own name table, out of %WINDIR%\Fonts and the per-user font folder.
    • An export suggests the Pictures folder and the project's own name, instead of the working directory (often Program Files) and the project's internal media/<uuid>.png. A typed name gets the extension its filter declares, so a project saved as look is look.opendither and the picker finds it next time.
    • Recent Files keeps pictures, not only projects.
    • A project named CON, NUL, LPT9 or COM1.txt still saves — Windows keeps those names for devices, so the suggested name gets a digit.
    • opendither --help | head no longer writes a crash log about the broken pipe.
    • opendither.exe --audit > audit.log writes the file instead of printing to the terminal and leaving it empty.

    Downloads

    openDither-0.1.2-windows-x86_64.zip windowed .exe (GUI subsystem), no DLLs beside it — +crt-static, same flags as 0.1.1
    openDither-0.1.2-linux-x86_64.tar.gz needs no glibc newer than 2.28

    SHA256SUMS covers both archives. Both binaries are built from this tag.

    What was checked

    On Linux, against the release build: cargo test 236, --audit 558/558 (1 skipped), --controls 62/62, --uitest 89/89, --selftest 456 renders / 0 failures, cargo fmt --check clean. For the Windows build: it links statically, reports GUI subsystem, carries no zenity/kdialog strings and only imports system DLLs. The Windows file flows were clicked through by hand on this branch on a real Windows machine before it was merged.

    Not checked: macOS — the code paths exist (paths.rs, dialogs.rs, text.rs) but nobody has built or run them yet, and there is no macOS binary in this release.

    Windows will warn the first time the .exe runs ("Windows protected your PC"), because it is not code-signed; the checksums below are how you verify it is the file built here. A certificate is the only thing that removes that warning.

    Downloads