How to disable console window on Windows?

Hi,
I have a problem with opening console window on Windows when opening my app(also this is visible when running app in Wine)
How can I disable it?
App to test - https://github.com/qarmin/czkawka/releases/download/1.5.1/windows_czkawka_gui.zip

Here is my build instruction on Windows - czkawka/windows.yml at 7148abb8bee061fa170f2f4feb12c7497252f609 · qarmin/czkawka · GitHub

1 Like

Somehow you need to specify the /SUBSYSTEM linker flag so Win32 knows it’s a gui app

Edit: Aha, it was added way back in Rust 1.18, add #![windows_subsystem = "windows"] to your main.rs

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.