diff options
Diffstat (limited to 'src/gpm-button.c')
-rw-r--r-- | src/gpm-button.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpm-button.c b/src/gpm-button.c index 3c70ca1..1e38173 100644 --- a/src/gpm-button.c +++ b/src/gpm-button.c @@ -255,13 +255,13 @@ gpm_button_class_init (GpmButtonClass *klass) gboolean gpm_button_is_lid_closed (GpmButton *button) { - g_return_val_if_fail (GPM_IS_BUTTON (button), FALSE); - GDBusProxy *proxy; GVariant *res, *inner; gboolean lid; GError *error = NULL; + g_return_val_if_fail (GPM_IS_BUTTON (button), FALSE); + if (LOGIND_RUNNING()) { proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, |