automount: port from CK to systemd-logind

ConsoleKit is being obsoleted by systemd. Accordingly port the CK logic
in the gnome-shell automount manager to systemd-logind APIs.

This makes use of systemd-logind's native C APIs which are much easier
to use than the D-Bus APIs in this case, and much faster too (since they
are synchronous and directly query the kernel for the information we
need). The dependency is compile time optional, and in order to be nice
to the Debian folks g-s compiled with this enabled fill automatically
fall back to CK support on systems lacking systemd.
This commit is contained in:
Lennart Poettering
2012-02-11 04:51:42 +01:00
parent c7fa719cc3
commit e8498adaf1
5 changed files with 84 additions and 7 deletions

View File

@ -50,6 +50,8 @@ void shell_shader_effect_set_double_uniform (ClutterShaderEffect *effect,
const gchar *name,
gdouble value);
gboolean shell_session_is_active_for_systemd (void);
G_END_DECLS
#endif /* __SHELL_UTIL_H__ */