<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jan 15, 2016 at 8:31 PM, Ilya Basin <span dir="ltr"><<a href="mailto:basinilya@gmail.com" target="_blank">basinilya@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi.<br></div>I want a graphical password prompt when an entry in /etc/crypttab is activated.<br></div>I have Archlinux/Xfce<br><br></div>Additionally installed xfce4-notifyd.<br><br><div>This works:<br><br>    $ sudo systemd-gnome-ask-password-agent<br><br>I think I can add this to ~/.xprofile, but I guess that's not how it was intended to work.<br></div></div></blockquote><div><br></div><div>Looks almost normal – that's also how other 'agents' like polkit-gnome-agent or nm-applet work. (They belong to different daemons but essentially do the same task.) Although, I suppose, the agent should autostart via /etc/xdg/autostart or ~/.config/autostart (Xfce's session settings), but that doesn't make any difference in the end.</div><div><br></div><div>The only difference is that you <i>really</i> shouldn't need `sudo` here. The agent itself will use polkit to send responses to systemd. Maybe your display manager doesn't properly set up a logind session? Does `pkexec` work? Does `pkcheck -p $$ -a org.freedesktop.systemd1.reply-password -u` work?</div><div><br></div><div>(Though I'm not entirely sure what restrictions the polkit side is supposed to have. Is asked for admin password normal here, or should it automatically allow replies from console sessions?)</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>