The path of the growl utility should be configurable
chx - January 24, 2009 - 22:17
| Project: | Growl |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
So that i can set it to dcop knotify default notify eventname Drupal '%message' '' '' 16 0 or kdialog --passivepopup %message or use snarl on Windows... a patch might follow.

#1
Created a duplicate issue at #364755: Support different notification backends. Highlights the issue with webserver vs. desktop user, which might be a problem for this kind of module in Linux.
#2
Accidentally posted in the duplicate issue. I'd be in favor of an approach that would make each part of the watchdog output (the message, the group, the url, etc) tokens to use in the command line string. That would make the module a generic 'pipe things to the command line' tool, even if it defaults to using Growl...
#3
I would like to point out a PHP alternatief for the growl command line: http://clickontyler.com/php-growl/
Would get rid of the command line dependencie.
#4
That's great, of course, sending over UDP instead of command line. However, I doubt we want to send such an avalanche of data that's necessary and I somewhat doubt that would help making the utility more generic which is what this issue is about...
#5
agreed w/chx that this patch is a different direction than that utility would go.
It seems that there are two dueling imperatives at work: 1) support the more complex capabilities of the growl framework, and 2) provide a tool that maps watchdog notices to any command line utility. 1) can actually be done straight from the command line as long as growlnotify is on the server, so I think it's still the best way to go.
I'd like to see is the tokenixing of the watchdog message pieces (text, severity, etc) and the ability to insert them into the command line text. Even cooler would be the ability to set up and choose from a couple of 'canned' options, like growlnotify for osx, the equivalent for kde, and so on...