[Pkg-xfce-devel] Bug#648604: a small typo on last patch

Santiago Garcia Mantinan manty at debian.org
Tue Nov 29 23:54:25 UTC 2011


Sorry, it seems I did a typo there, a ; was missing before the then, I must
have sent a previous patch by error, here is the good one:

--- power-funcs	2011-03-23 20:28:30.000000000 +0100
+++ /usr/share/acpi-support/power-funcs	2011-11-29 21:33:37.698289267 +0100
@@ -16,7 +16,11 @@
 getXuser() {
 	local plist user l lastpp ds startx pid userhome
 
-	plist=$(pinky -fw) || pwf_error "pinky lost"
+	if [ -x /usr/bin/ck-history ]; then 
+		plist=$(ck-history --last-compat|sed -n "s/\([^:]*:[^ ]*\).*still logged in[ ]*/\1/p")
+	else
+		plist=$(pinky -fw) || pwf_error "pinky lost"
+	fi
 	user=
 	while read l; do
 		set -- $l

Regards...
-- 
Manty/BestiaTester -> http://manty.net





More information about the Pkg-xfce-devel mailing list