loginctl: use /org/freedesktop/login1/session/auto when "lock-session" is called...
authorLennart Poettering <lennart@poettering.net>
Tue, 21 Jan 2020 12:43:04 +0000 (13:43 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Feb 2020 13:46:51 +0000 (14:46 +0100)
commite9904998213dcb4d5f268f3e8b1390299a1100f0
tree3bf554cf23fc8e49c9b34202e152e8ad30007067
parent82dd4caf014c97eb9d7ab9da2841f7866e91bd98
loginctl: use /org/freedesktop/login1/session/auto when "lock-session" is called without argument

This way we'll use the "display" session automatically, and that makes
the call work when invoked from user@.service.

Fixes: #13614
(cherry picked from commit dc084399fad28cc98e7bcdb9074141c97e863bee)
src/login/loginctl.c