[systemd-devel] Locking current session programmatically

Ivan Shapovalov intelfx100 at gmail.com
Fri Jun 27 06:45:15 PDT 2014


I want to lock my current session using a command-line tool (or a D-Bus call).

The only apparent way to do this is `loginctl lock-session $XDG_SESSION_ID`.
However, this results in an "Access denied" reply, which is somewhat strange
(I expect to be able to lock my own session).

Is this by design or a bug? In either case, is it possible to lock the current
session?

-- 
Ivan Shapovalov / intelfx /
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140627/ee5d1e78/attachment.sig>


More information about the systemd-devel mailing list