session-info: check for a locked session
commit364b6bba068bd694d7c4355b6275f88482d9f3f8
authorVictor Toso <victortoso@redhat.com>
Sat, 9 Apr 2016 10:00:08 +0000 (9 12:00 +0200)
committerVictor Toso <victortoso@redhat.com>
Wed, 4 May 2016 07:23:25 +0000 (4 09:23 +0200)
tree799bab086a6899b8bf53a2d31064bd49ab58edeb
parent0064dca2dd5dc63987110a82bfde7892b52255ea
session-info: check for a locked session

Each session back-end can return this information to vdagentd when
requested.

The agent should use this on situations that should not work when
session is locked such as file-transfer-start which is fixed by this
patch.

systemd-login is the only back-end implementing this function at the
moment and I'll address console-kit back-end in a later patch.

Also, this patch makes spice-vdagent depend on dbus for getting the
lock information.

Resolve: https://bugzilla.redhat.com/show_bug.cgi?id=1323623

Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
configure.ac
src/console-kit.c
src/dummy-session-info.c
src/session-info.h
src/systemd-login.c
src/vdagentd.c