[Debian-eeepc-commits] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. 1.1.0-beta.1-30-g3ec490d

Raphael Geissert atomo64 at gmail.com
Thu Jul 9 05:25:54 UTC 2009


The following commit has been merged in the master branch:
commit 32b9a6448e8f4408a1a924ff986962e138792a3b
Author: Raphael Geissert <atomo64 at gmail.com>
Date:   Thu Jul 9 00:06:31 2009 -0500

    Add support for OSD notifications via kdialog

diff --git a/debian/changelog b/debian/changelog
index 9f1099f..62ece95 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -20,6 +20,8 @@ eeepc-acpi-scripts (1.1.1) unstable; urgency=low
   [ Raphael Geissert ]
   * Allow fine-grained control over the lid-closing action.
   * Make init script depend on $remote_fs, we use /usr
+  * Add support for OSD notifications via kdialog (Closes: #519671)
+    - Thanks to Gernot Pansy <pansyg at gmx.at> for the patch
 
   [ Tanguy Ortolo ]
   * Fix "[ -e $foo ]" where foo may be empty. (Closes: #532631)
diff --git a/etc/acpi/lib/notify.sh b/etc/acpi/lib/notify.sh
index 968c2a4..bf7271c 100644
--- a/etc/acpi/lib/notify.sh
+++ b/etc/acpi/lib/notify.sh
@@ -59,5 +59,10 @@ notify() {
 	OSD_SHOWN=1
     fi
 
+    if [ -z "$OSD_SHOWN" ] && [ -x /usr/bin/kdialog ]; then
+	su "$user" -c "kdialog --passivepopup '$MSG' 2 --title 'Eee PC'" &
+	OSD_SHOWN=1
+    fi
+
 }
 

-- 
Maintenance of eeepc-acpi-scripts debian package



More information about the Debian-eeepc-commits mailing list