Commit cc7cf987 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

monitor-manager: don't throw an error if UPower isn't running

Based on mutter commit:
mutter@644a618f
parent efdb0188
......@@ -2020,8 +2020,11 @@ gf_monitor_manager_constructed (GObject *object)
{
manager->up_client = up_client_new ();
g_signal_connect_object (manager->up_client, "notify::lid-is-closed",
G_CALLBACK (lid_is_closed_changed), manager, 0);
if (manager->up_client)
{
g_signal_connect_object (manager->up_client, "notify::lid-is-closed",
G_CALLBACK (lid_is_closed_changed), manager, 0);
}
}
g_signal_connect_object (manager, "notify::power-save-mode",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment