deno-systray icon indicating copy to clipboard operation
deno-systray copied to clipboard

On Windows, a systray-portable console is launched

Open wojciechkrol opened this issue 1 year ago • 1 comments

When I compile a program using deno compile with the --no-terminal flag, the main program's console is not displayed, but the subprocess console window of systray-portable, is continuously running. I have no idea how to hide this window so that launching the compiled version of the script does not display any console and works in the background. Do you have any idea how to solve this?

PS: When I close this console the entire program quits.

wojciechkrol avatar Nov 17 '23 11:11 wojciechkrol

For me, nothing is displayed and no system tray is created when compiled with --no-terminal.

felipecrs avatar Jun 17 '24 04:06 felipecrs

I believe this project wraps this go library: https://github.com/getlantern/systray

Their README states:

To avoid opening a console at application startup, use these compile flags: go build -ldflags -H=windowsgui

I don't know how to rebuild the underlying go library this depends on, but maybe that'll point you in the right direction.

crummy avatar Oct 21 '24 08:10 crummy

That's a good hint, but in fact this library depends on:

  • https://github.com/wobsoriano/systray-portable

(ref)

felipecrs avatar Oct 21 '24 13:10 felipecrs

Lol, never mind, just realized that wobsoriano/systray-portable actually refers to getlantern/systray.

felipecrs avatar Oct 21 '24 13:10 felipecrs