<div dir="ltr">Right, sorry, I was probably thinking about something different.<br><br>Speaking about marking `.Lock` non-privileged, I'd like to point out that there is also `.Unlock` and so, by making one of them non-privileged and the other one privileged, we kind of introduce asymmetry.<br>
On the other hand, making `.Unlock` non-privileged may be seen as a security issue, at least the KDE guys think that. I've already tried to start a discussion about `Lock/Unlock` used by users here: <a href="http://lists.freedesktop.org/archives/systemd-devel/2014-April/018410.html">http://lists.freedesktop.org/archives/systemd-devel/2014-April/018410.html</a>.<br>
</div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><br></div>--<br>Кирилл Елагин</div></div>
<br><br><div class="gmail_quote">On Sun, Jun 29, 2014 at 2:04 PM, Mantas Mikulėnas <span dir="ltr"><<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr">A session manager is *not necessary* for this; the screensaver or screenlocker itself could easily listen to the relevant DBus signals (e.g. cinnamon-screensaver does this). See also: xss-lock, systemd-lock-handler.</p>
<span class="HOEnZb"><font color="#888888">
<p dir="ltr">-- <br>
Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>><br>
// sent from phone</p></font></span><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On Jun 29, 2014 1:02 PM, "Kirill Elagin" <<a href="mailto:kirelagin@gmail.com" target="_blank">kirelagin@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">If you don't have a DE you don't have a session manager either, so systemd-logind can't help you anyway.<br>Indeed, you should just run your screenlocker.<br></div><div class="gmail_extra"><br clear="all">
<div><div dir="ltr"><div><br></div>--<br>Кирилл Елагин</div></div>
<br><br><div class="gmail_quote">On Sun, Jun 29, 2014 at 9:57 AM, Ivan Shapovalov <span dir="ltr"><<a href="mailto:intelfx100@gmail.com" target="_blank">intelfx100@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
>> 27 июня 2014 г., в 21:54, Lennart Poettering <<a href="mailto:lennart@poettering.net" target="_blank">lennart@poettering.net</a>> написал(а):<br>
<div>>><br>
>> On Fri, 27.06.14 17:45, Ivan Shapovalov (<a href="mailto:intelfx100@gmail.com" target="_blank">intelfx100@gmail.com</a>) wrote:<br>
>><br>
>> I want to lock my current session using a command-line tool (or a D-Bus call).<br>
>><br>
>> The only apparent way to do this is `loginctl lock-session $XDG_SESSION_ID`.<br>
>> However, this results in an "Access denied" reply, which is somewhat strange<br>
>> (I expect to be able to lock my own session).<br>
>><br>
>> Is this by design or a bug?<br>
><br>
> Neither. Just missing functionality. I added this to the TODO list now.<br>
><br>
>> In either case, is it possible to lock the current<br>
>> session?<br>
><br>
> Well, not with logind, no. But you should be able to do it with GNOME's APIs.<br>
><br>
> Lennart<br>
><br>
> --<br>
> Lennart Poettering, Red Hat<br>
<br>
</div>I've got a DE-less setup (a freestanding window manager). Should I just invoke whatever tool I use for screenlocking (i3lock in my case)?<br>
<div><br>
--<br>
Ivan Shapovalov / intelfx /<br>
<br>
</div>(Sent from a phone. Havoc may be wreaked on the formatting.)<br>
<div><div>_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</div></div></blockquote></div><br></div>
<br>_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
<br></blockquote></div>
</div></div></blockquote></div><br></div>