[Pkg-xfce-devel] Bug#648604: workaround while this is not fixed

Santiago Garcia Mantinan manty at debian.org
Tue Nov 29 16:29:12 UTC 2011


Thanks to Peter Colberg for the ck-history hint, it seems console-kit is
having it's own history log and thus it is able to identify the users where
pinky, last, w and the like can't.

I've written this quick hack so that I can have screen locking using
console-kit, while nobody addresses this properly.

--- power-funcs	2011-11-16 19:02:31.104327786 +0100
+++ /usr/share/acpi-support/power-funcs	2011-11-29 16:57:04.511211873 +0100
@@ -17,6 +17,7 @@
 	local plist user l lastpp ds startx pid userhome
 
 	plist=$(pinky -fw) || pwf_error "pinky lost"
+	if [ -z "$plist" ];then plist=$(ck-history --last-compat|sed -n "s/\([^:]*:[^ ]*\).*still logged in[ ]*/\1/p");fi
 	user=
 	while read l; do
 		set -- $l

Hope it solves the problem for other people while we don't get better
support from lightdm.

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





More information about the Pkg-xfce-devel mailing list