Windows: a console window opens with the app #657

Closed
opened 2026-11-15 17:33:57 +00:00 by charles · 1 comment
Owner

Report (Charles, 2026-11-15). On Windows a console window appears when Flaxative starts.

Cause. apps/fluxer/src/main.rs has no windows_subsystem attribute, so flaxative.exe is built as a console program and Windows gives it a console when started from the shortcut or Explorer. It is not a debug mode; logs go to the log files.

Wanted. Build release as a GUI program (#![cfg_attr(all(windows, not(debug_assertions)), windows_subsystem = "windows")]). Keep command-line output working: --help, --version, --debug-info and error messages must still print when started from a terminal (attach to the parent console when there is one) and when output is redirected (the release workflow's smoke test runs flaxative.exe --debug-info). No child process may flash a console either.

**Report (Charles, 2026-11-15).** On Windows a console window appears when Flaxative starts. **Cause.** `apps/fluxer/src/main.rs` has no `windows_subsystem` attribute, so `flaxative.exe` is built as a console program and Windows gives it a console when started from the shortcut or Explorer. It is not a debug mode; logs go to the log files. **Wanted.** Build release as a GUI program (`#![cfg_attr(all(windows, not(debug_assertions)), windows_subsystem = "windows")]`). Keep command-line output working: `--help`, `--version`, `--debug-info` and error messages must still print when started from a terminal (attach to the parent console when there is one) and when output is redirected (the release workflow's smoke test runs `flaxative.exe --debug-info`). No child process may flash a console either.
Author
Owner

Fixed in nightly 2026.1115.332.

Fixed in nightly 2026.1115.332.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#657
No description provided.