mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-09 07:08:07 +02:00
Send resume signal when built with systemd and using pm-utils suspend
This case was apparently overlooked when adding systemd support. Signed-off-by: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> Signed-off-by: Richard Hughes <richard@hughsie.com>
This commit is contained in:
parent
164904bfa3
commit
ac4042ffaf
1 changed files with 4 additions and 3 deletions
|
|
@ -603,10 +603,11 @@ gboolean
|
|||
up_backend_emits_resuming (UpBackend *backend)
|
||||
{
|
||||
#ifdef HAVE_SYSTEMD
|
||||
return TRUE;
|
||||
#else
|
||||
return FALSE;
|
||||
if (sd_booted ())
|
||||
return TRUE;
|
||||
else
|
||||
#endif
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue