google / xsecurelock

X11 screen lock utility with security in mind
Apache License 2.0
876 stars 65 forks source link

Sending USR2 to xsecurelock per README kills it instead of displaying the prompt #148

Closed Dook97 closed 9 months ago

Dook97 commented 2 years ago

The problem

I find it confusing and annoying to have to press a key to show the password prompt. For such cases the README gives the following instructions:

To have the authentication process start up without a keypress when the system exits suspend/hibernate, arrange for the system to send the SIGUSR2 signal to the XSecureLock process.

For example, you can copy the following script to the file /usr/lib/systemd/system-sleep/xsecurelock:

#!/bin/bash
if [[ "$1" = "post" ]] ; then
  pkill -x -USR2 xsecurelock
fi
exit 0

But when I do that xsecurelock simply doesn't engage and lets the user right through without any password.

My setup

I'm using Arch and have xsecurelock installed from its repositories (haven't built it myself). I invoke xsecurelock thusly in my .xinitrc:

env XSECURELOCK_PASSWORD_PROMPT=time_hex xss-lock /usr/bin/xsecurelock &


Obligatory: "Sorry, I'm a newbie and the mistake is most probably due to me not knowing wth I'm doing :p"

timakro commented 2 years ago

The feature is not released yet. I'm also hoping for a release :)

Dook97 commented 9 months ago

Fixed in the last release.