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

Its not possible to create toast notification as service #16

Closed ericrange closed 5 years ago

gen2brain commented 6 years ago

Can you describe what you meant with notification as service, is it a Windows only thing? How will that work on macOS and Linux, and is it related to https://github.com/gen2brain/beeep/issues/10 .

ericrange commented 6 years ago

its windows thing. a service dont have access to a active window user session. its possible but it needs some windows-dll magic :( the toast notification apears if you start the program as a user. but not, in a service context.

martinlindhe commented 5 years ago

@ericrange Windows services normally don't use notifications, but rather write to the event log.

https://godoc.org/golang.org/x/sys/windows/svc/eventlog