On 2014-09-24 13:56, Michael Meskes wrote:
On Sat, Sep 20, 2014 at 04:51:08PM +0200, Per Andersson wrote:
Before filing the bug I have of course tried with LOCK_SCREEN both
true
and false in the default file. No difference and the screensaver does
not lock. I have also verified that xscreensaver is running before
closing the lid.
Could you please debug this? The locking code is in
/usr/share/acpi-support/screenblank which is sourced by
/etc/acpi/lid.sh.
I had a look. It seems that the getXuser function does not work.
If I try to manually execute getXuser it does not set XUSER or
XAUTHORITY in the environment
# . /usr/share/acpi-support/power-funcs
# export displaynum=0
# getXuser
# echo $XUSER
# echo $XAUTHORITY
The getXuser function takes the branch with ck-list-sessions (since it
exists on my system). This is used to extract the UID, but since
ck-list-sessions does not return anything $uid ends up being empty.
# ck-list-sessions
Maybe there's a problem setting XAUTHORITY.
Possibly, but if I understood correctly, it doesn't even get that far.
Everything fails because $user is not set in the beginning, and there is
no way to recover from that.
--
Per
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org