-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create non-console version, so conhost.exe doesn't also need to run #51
Comments
I see your point, but i have no idea how to achieve that. Do you have any evidence that it's possible / any clue about how to technically speaking achieve this ? Because as far as i can tell, a windows program either has to be a "form-based" application (with a GUI), either a "console" application (launchable in a standalone way - and here of course with a console, or through a service machanism (here, just as a proposal, with the external tool NSSM). And have you tried this, by the way, per the NSSM documentation ? (@see https://nssm.cc/usage)
Otherwise for reference, i have not found a lot of informations about that topic in golang :
|
Sorry, I have no experience with Go so I don't know if it's possible within that framework. The closest thing I can think of, with an app that stays resident but has no console window, would be something like a compiled AutoHotkey script. Those have a system tray icon to (minimally) just exit the program. I don't know if that's something you'd consider replicating here or not. Unfortunately I'd already tried setting NSSM to not have a console window (it's also a checkbox in NSSM's interactive UI) but sol still spawns one. I also tried redirecting stdin and stdout to |
Adding |
Thank you for sol, it's working well for my needs. However, being a console app it also spawns a conhost on Windows, even when console output is directed to a file. An additional conhost consumes more memory than both sol and nssm combined, which is rather a shame as in a service configuration we don't need a console anyway.
Would it be possible to compile this as a non-console app as well, so it doesn't generate a conhost?
Many thanks for your work!
The text was updated successfully, but these errors were encountered: