On Feb 8, 2010, at 15:11:06, P4n1kH0u53 wrote:
I have a C++ UPS-monitoring daemon that needs to send 1 growl notification saying to anyone that might be logged in, "Your computer is shutting down soon."

Growl will only show the notification to one logged-in user, who may not be the active one. (Remember fast user switching.) It'd probably be a good idea to send the notification through an agent of your own that either shows a dialog box or, if and only if Growl is running as the active user, posts a Growl notification.

We don't recommend bundling growlnotify or running it as a subprocess from a program. It's for end users to run directly from the command- line or use in such things as version-control hooks.

What we recommend instead, for command-line tools, is including the GrowlApplicationBridge source files (which are BSD-licensed) in your program. You can make a C++ wrapper class with an Objective-C++ implementation file.

Please be sure to keep them up to date. We see plenty of apps using old versions of the Growl framework; it would be at least as easy to have the same problem in bundling the source files. If you take my agent suggestion, you could write it in Cocoa and use the pre-built framework.

--
You received this message because you are subscribed to the Google Groups "Growl 
Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/growldiscuss?hl=en.

Reply via email to