Forcing power manager to use slock instead of light-locker

Justin Mathew mjustin at
Mon Mar 23 15:41:39 CET 2020

Thanks for the reply,

I tried that but this is what I get.

$ xfconf-query -c xfce4-session -p /general/LockCommand -s "slock"
Property "/general/LockCommand" does not exist on channel "xfce4-session". If a new property should be created, use the --create option.

I did a bit of search with the error, and came across this -

It suggested adding a line to settings/xfce4-session.xml or a similar file which I am unable to find even inside ~/.config/xfce4.

So, one, is there any fix for the error; two, what is the settings/xfce4-session.xml file in question?


> > I use slock instead of light-locker. The power manager settings offer an option to lock the system when system is going for sleep.
> > In my system it doesn't happen - the system wakes up to an logged in session. I suspect that it is because of the absence of light-locker.
> > Is there any way I can tell power manager to uses slock for this purpose?
> you can set the lock command via xfconf, e.g.
> xfconf-query -c xfce4-session -p /general/LockCommand -s "slock"
> Bjoern
> Xfce mailing list
> Xfce at

Justin Mathew

Sent with ProtonMail Secure Email.

More information about the Xfce mailing list