maoserr / redshiftgui

Monitor color temperature adjustment tool
http://maoserr.github.io/projects/redshiftgui/
GNU General Public License v3.0
231 stars 28 forks source link

Hide Tray Icon #8

Closed WandersFar closed 1 year ago

WandersFar commented 12 years ago

Could we have the option to hide the tray icon?

I've been using this program for a couple years now, and I never turn it off or adjust the settings anymore, so it'd be nice if it could just run silently. Thanks for reading.

maoserr commented 10 years ago

Ok. How would you pull the GUI back up without tray though? Start another instance with a switch? I feel this might make users confused...

WandersFar commented 10 years ago

Start another instance with a switch?

That could work.

Or you could just make it an option in the config file. Only users who read the readme will even know it’s there, and they’re probably comfortable editing the config file manually anyway.

BugZappr commented 8 years ago

I suggest start another instance without a switch. If it is running hidden, the new instance could terminate and the minimized instance would show. Alternately, the new instance would terminate the hidden instance. I've been tinkering around with a program of my own that behaves similarly. I implemented it via shared memory and a named pipe. It uses shared memory to see if an instance is already running, and a named pipe to communicate with it if it is. I haven't run into an instance yet of blocking due to the pipe, although you have to be careful to flush and see if it has data before reading it consistently. In principle, it could also all be done with shared memory. I don't think you're likely to generate a race condition in this kind of setup.

Yet another option, but one I know nothing about from a programming standpoint, is running it as a service. You would then load a GUI to control it. Something similar can be seen in Hostman's server software (although I don't recommend it due to problems running Samba network discovery, which M$ calls something else, and a custom DNS client.)

(FWIW: I'd much rather have one less icon in the system tray, since I always have Windows show them all, than for it to respond to the weather, which has nothing to do with one's diurnal cycle.)