gen2brain / beeep

Go cross-platform library for sending desktop notifications, alerts and beeps
BSD 2-Clause "Simplified" License
1.47k stars 90 forks source link

fixed flashing powershell window when build with -H=windowsgui flag #25

Closed hhh0pE closed 5 years ago

hhh0pE commented 5 years ago

Hello. When a program is built with -ldflags="-H=windowsgui" (that is needed if the program is not a console app, but with own GUI) - PowerShell window flashes just after launch. This PR fixes it by adding syscall.SysProcAttr{HideWindow:true} to cmd.Exec(in 2 places).

Now there are no flashing windows as it should be.

gen2brain commented 5 years ago

Thanks, can you just move that syscall import above to standard lib block?