Subject: [PATCH] test for OSD_SHOWN before checking for gnome-osd for consistency reasons

From: Raphael Geissert <[email-masked]>
Date: Thu, 29 Jan 2009 17:34:29 -0600

Signed-off-by: Raphael Geissert <[email-masked]>
---
 etc/acpi/lib/notify.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/etc/acpi/lib/notify.sh b/etc/acpi/lib/notify.sh
index 0156129..2df91f9 100755
--- a/etc/acpi/lib/notify.sh
+++ b/etc/acpi/lib/notify.sh
@@ -21,7 +21,7 @@ notify() {
 
     # try to show a nice OSD notification via GNOME OSD service
     GOSDC=/usr/bin/gnome-osd-client
-    if [ -x $GOSDC ]; then
+    if [ -z "$OSD_SHOWN" ] && [ -x $GOSDC ]; then
 	if ps -u $user -o cmd= | grep -q '^/usr/bin/python /usr/bin/gnome-osd-event-bridge'; then
 	    if echo "$MSG" | grep -q '[0-9]'; then
 		animations='off'