diff options
Diffstat (limited to 'gui/simple-greeter/gdm-greeter-panel.c')
-rw-r--r-- | gui/simple-greeter/gdm-greeter-panel.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/simple-greeter/gdm-greeter-panel.c b/gui/simple-greeter/gdm-greeter-panel.c index 7157a9f4..ce00b90c 100644 --- a/gui/simple-greeter/gdm-greeter-panel.c +++ b/gui/simple-greeter/gdm-greeter-panel.c @@ -646,7 +646,8 @@ try_system_stop (GDBusConnection *connection, NULL, &call_error); - if (reply == NULL && g_error_matches (call_error, G_DBUS_ERROR, G_DBUS_ERROR_NAME_HAS_NO_OWNER)) { + if (reply == NULL && (g_error_matches (call_error, G_DBUS_ERROR, G_DBUS_ERROR_NAME_HAS_NO_OWNER) || + g_error_matches (call_error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN))) { g_clear_error (&call_error); reply = g_dbus_connection_call_sync (connection, CK_NAME, @@ -695,7 +696,8 @@ try_system_restart (GDBusConnection *connection, NULL, &call_error); - if (reply == NULL && g_error_matches (call_error, G_DBUS_ERROR, G_DBUS_ERROR_NAME_HAS_NO_OWNER)) { + if (reply == NULL && (g_error_matches (call_error, G_DBUS_ERROR, G_DBUS_ERROR_NAME_HAS_NO_OWNER)|| + g_error_matches (call_error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN))) { g_clear_error (&call_error); reply = g_dbus_connection_call_sync (connection, CK_NAME, |