Start of PolicyKit support

Get a PolicyKit context per-device, set up its main loop,
and steal more code from gnome-panel to check whether
the actions are allowed for a particular caller.
This commit is contained in:
Bastien Nocera
2008-05-20 17:00:58 +01:00
committed by Daniel Drake
parent 5e194488e7
commit 61a2266e52
3 changed files with 106 additions and 4 deletions

View File

@ -24,6 +24,10 @@ PKG_CHECK_MODULES(DBUS_GLIB, "dbus-glib-1")
AC_SUBST(DBUS_GLIB_LIBS)
AC_SUBST(DBUS_GLIB_CFLAGS)
PKG_CHECK_MODULES(POLKIT, "polkit")
AC_SUBST(POLKIT_LIBS)
AC_SUBST(POLKIT_CFLAGS)
AS_AC_EXPAND(DATADIR, $datadir)
DBUS_SERVICES_DIR="$DATADIR/dbus-1/services"