jacob-pro / solar-screen-brightness

Automatically adjust monitor / screen brightness at night using sunrise/sunset times
GNU Lesser General Public License v3.0
60 stars 4 forks source link

Console window is not hidden when using Windows Terminal as default host (Windows 11) #22

Closed xPaw closed 8 months ago

xPaw commented 2 years ago

When using this option: image

The console window is visible when SSB is running. Closing it closes SSB.

jacob-pro commented 2 years ago

that sounds annoying 😆

I'm planning to rewrite the whole UI in QT when I have time, this project started out as an experimental / uni project and needs an overhaul lol

jacob-pro commented 2 years ago

One work around you could use is once you are setup you can launch the app in headless mode, and there will be no UI shown at all

./solar-screen-brightness.exe headless
xPaw commented 2 years ago

I've worked around it by using RunHiddenConsole which I had lying around.

claell commented 1 year ago

I have the same issue, but good to see there is already an issue open about it.

I am not sure, but it seems like this is the only tool around that actually supports scheduling brightness changes automatically on Windows? So I'd really benefit from a quick fix :)

Else, I am also very interested to hear alternatives for now.

caesay commented 10 months ago

Indeed, this is a simple fix, it just needs to be recompiled with subsystem:windows instead of subsystem:console. Thanks for the RunHiddenConsole suggestion in the mean time.

cristipopescu1 commented 10 months ago

I confirm that changing the default terminal to "windows host" fixes this

jacob-pro commented 8 months ago

Version 2.0 has a new UI that no longer relies on a console window - so this should no longer be an issue

claell commented 6 months ago

Additionally, I noticed that some Windows update apparently fixed the bug for me with the old version as well.

claell commented 5 months ago

For some reason, the console window returned back again, after not appearing, before.

But the new GUI version works flawlessly, I just updated!