Browse files

Fix the suspend check

  • Loading branch information...
1 parent c673fee commit ccfdd95996f6721e73bb1ae28a08c4a3c15d2ad4 @mhr3 mhr3 committed Jan 16, 2012
Showing with 6 additions and 1 deletion.
  1. +1 −0 src/core/desktop-file-service.vala
  2. +5 −1 src/plugins/system-management.vala
View
1 src/core/desktop-file-service.vala
@@ -173,6 +173,7 @@ namespace Synapse
}
catch (Error err)
{
+ Utils.Logger.warning (this, "%s", err.message);
is_valid = false;
}
}
View
6 src/plugins/system-management.vala
@@ -102,10 +102,11 @@ namespace Synapse
UPowerObject.UNIQUE_NAME,
UPowerObject.OBJECT_PATH);
- allowed = yield dbus_interface.hibernate_allowed ();
+ allowed = yield dbus_interface.suspend_allowed ();
}
catch (IOError err)
{
+ warning ("%s", err.message);
allowed = false;
}
}
@@ -176,6 +177,7 @@ namespace Synapse
}
catch (IOError err)
{
+ warning ("%s", err.message);
allowed = false;
}
}
@@ -245,6 +247,7 @@ namespace Synapse
}
catch (IOError err)
{
+ warning ("%s", err.message);
allowed = false;
}
}
@@ -299,6 +302,7 @@ namespace Synapse
}
catch (IOError err)
{
+ warning ("%s", err.message);
allowed = false;
}
}

0 comments on commit ccfdd95

Please sign in to comment.