diff options
Diffstat (limited to 'mate-session/gsm-manager.c')
-rw-r--r-- | mate-session/gsm-manager.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mate-session/gsm-manager.c b/mate-session/gsm-manager.c index d765322..59b71e4 100644 --- a/mate-session/gsm-manager.c +++ b/mate-session/gsm-manager.c @@ -448,7 +448,7 @@ gsm_manager_quit (GsmManager *manager) mdm_set_logout_action (MDM_LOGOUT_ACTION_NONE); #ifdef HAVE_SYSTEMD - if (sd_booted () > 0) { + if (LOGIND_RUNNING()) { systemd = gsm_get_systemd (); g_signal_connect (systemd, "request-completed", @@ -477,7 +477,7 @@ gsm_manager_quit (GsmManager *manager) mdm_set_logout_action (MDM_LOGOUT_ACTION_NONE); #ifdef HAVE_SYSTEMD - if (sd_booted () > 0) { + if (LOGIND_RUNNING()) { systemd = gsm_get_systemd (); g_signal_connect (systemd, "request-completed", @@ -1930,7 +1930,7 @@ maybe_save_session (GsmManager *manager) GError *error; #ifdef HAVE_SYSTEMD - if (sd_booted () > 0) { + if (LOGIND_RUNNING()) { systemd = gsm_get_systemd (); session_type = gsm_systemd_get_current_session_type (systemd); @@ -2458,7 +2458,7 @@ on_presence_status_changed (GsmPresence *presence, GsmManager *manager) { #ifdef HAVE_SYSTEMD - if (sd_booted () > 0) { + if (LOGIND_RUNNING()) { GsmSystemd *systemd; systemd = gsm_get_systemd (); @@ -2744,7 +2744,7 @@ request_reboot (GsmManager *manager) */ #ifdef HAVE_SYSTEMD - if (sd_booted () > 0) { + if (LOGIND_RUNNING()) { systemd = gsm_get_systemd (); g_signal_connect (systemd, "privileges-completed", @@ -2856,7 +2856,7 @@ request_shutdown (GsmManager *manager) * this works. */ #ifdef HAVE_SYSTEMD - if (sd_booted () > 0) { + if (LOGIND_RUNNING()) { systemd = gsm_get_systemd (); g_signal_connect (systemd, "privileges-completed", @@ -3202,7 +3202,7 @@ gsm_manager_can_shutdown (GsmManager *manager, g_return_val_if_fail (GSM_IS_MANAGER (manager), FALSE); #ifdef HAVE_SYSTEMD - if (sd_booted () > 0) { + if (LOGIND_RUNNING()) { systemd = gsm_get_systemd (); *shutdown_available = gsm_systemd_can_stop (systemd) || gsm_systemd_can_restart (systemd) |