Skip to content

fix: hide Windows console when launched from Explorer - #33

Merged
vasiltop merged 1 commit into
mainfrom
fix/windows-hide-console-on-double-click
Aug 22, 2026
Merged

fix: hide Windows console when launched from Explorer#33
vasiltop merged 1 commit into
mainfrom
fix/windows-hide-console-on-double-click

Conversation

@vasiltop

Copy link
Copy Markdown
Owner

Summary

  • Detach the Windows console at startup when this process is the only one attached (Explorer double-click / Start menu).
  • Keep the console when launched from an existing terminal so stdout/stderr still work.

Test plan

  • On Windows, double-click editor.exe — SDL window opens with no console
  • From cmd/PowerShell, run editor.exe — console stays attached and stderr still prints
  • Open a file via CLI (editor.exe path\to\file) still works

Made with Cursor

Detach the console only when this process is the sole attached process, so double-click starts without a console while terminal launches keep stdout/stderr.
@vasiltop
vasiltop merged commit dcbeaf4 into main Aug 22, 2026
3 checks passed
@vasiltop
vasiltop deleted the fix/windows-hide-console-on-double-click branch August 22, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant