[Debian-eeepc-devel] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. e01b1fbaacb1316a7dd419cdd68a49581d39e938

Nico Golde nion at debian.org
Fri Apr 25 12:29:41 UTC 2008


The following commit has been merged in the master branch:
commit e01b1fbaacb1316a7dd419cdd68a49581d39e938
Author: Nico Golde <nion at debian.org>
Date:   Fri Apr 25 14:29:09 2008 +0200

    fix display regex

diff --git a/actions/hotkey.sh b/actions/hotkey.sh
index 34fa8a6..e08dcfb 100755
--- a/actions/hotkey.sh
+++ b/actions/hotkey.sh
@@ -10,7 +10,7 @@ notify() {
     echo "$@"  # for /var/log/acpid
     if [ -S /tmp/.X11-unix/X0 ]; then
 	export DISPLAY=:0
-	user=$(who | sed -n '/ (:0[\.0].*)$\| :0 /{s/ .*//p;q}')
+	user=$(who | sed -n '/ (:0[\.0]*)$\| :0 /{s/ .*//p;q}')
         home=$(getent passwd $user | cut -d: -f6)
 	XAUTHORITY=$home/.Xauthority
 	[ -f $XAUTHORITY ] && export XAUTHORITY
diff --git a/debian/changelog b/debian/changelog
index e883ae5..2007a3b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ eeepc-acpi-scripts (1.0.3) unstable; urgency=low
 
   * lid.sh, lid: only suspend if a power manager is not present,
     otherwise let the power manager handle it.
+  * Fix regex for display detection in hotkey.sh.
 
  -- Ben Armstrong <synrg at sanctuary.nslug.ns.ca>  Wed, 16 Apr 2008 06:03:20 -0300
 

-- 
Maintenance of eeepc-acpi-scripts debian package



More information about the Debian-eeepc-devel mailing list