[Pkg-xfce-devel] Bug#648604: workaround while this is not fixed
- Subject: [Pkg-xfce-devel] Bug#648604: workaround while this is not fixed
- From: manty at debian.org (Santiago Garcia Mantinan)
- Date: Tue, 29 Nov 2011 17:29:12 +0100
- Message-id: <[🔎] 20111129162912.GA25499@vip.manty.net>
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
Reply to: