Configure genmon to run a command with invalid arguments, such as "date -q". "XXX" is displayed in the panel instead of the error message. In a terminal window: $ date -q date: invalid option -- q Try `date --help' for more information. xfce4-genmon-plugin 3.2 - Generic Monitor
Created attachment 1610 genmon_SpawnCmd() returns 0 if there is data from stdout or stderr This patch changes genmon_SpawnCmd() to return 0 when there is data from either stdout or stderr, otherwise -1. If there is data from both, only data from stdout is put into the buffer. Test by configuring genmon with a period of one second, and each of these commands: 1. "date" should show the current date and time. 2. "date -q" should show an error message. 3. "/bin/true" should show "XXX". This patch also includes changes from http://bugzilla.xfce.org/show_bug.cgi?id=4036 so that this patch can be tested with "/bin/true".
Patch applied. Thanks.