Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix the suspend check

  • Loading branch information...
commit ccfdd95996f6721e73bb1ae28a08c4a3c15d2ad4 1 parent c673fee
mhr3 mhr3 authored
1  src/core/desktop-file-service.vala
@@ -173,6 +173,7 @@ namespace Synapse
173 173 }
174 174 catch (Error err)
175 175 {
  176 + Utils.Logger.warning (this, "%s", err.message);
176 177 is_valid = false;
177 178 }
178 179 }
6 src/plugins/system-management.vala
@@ -102,10 +102,11 @@ namespace Synapse
102 102 UPowerObject.UNIQUE_NAME,
103 103 UPowerObject.OBJECT_PATH);
104 104
105   - allowed = yield dbus_interface.hibernate_allowed ();
  105 + allowed = yield dbus_interface.suspend_allowed ();
106 106 }
107 107 catch (IOError err)
108 108 {
  109 + warning ("%s", err.message);
109 110 allowed = false;
110 111 }
111 112 }
@@ -176,6 +177,7 @@ namespace Synapse
176 177 }
177 178 catch (IOError err)
178 179 {
  180 + warning ("%s", err.message);
179 181 allowed = false;
180 182 }
181 183 }
@@ -245,6 +247,7 @@ namespace Synapse
245 247 }
246 248 catch (IOError err)
247 249 {
  250 + warning ("%s", err.message);
248 251 allowed = false;
249 252 }
250 253 }
@@ -299,6 +302,7 @@ namespace Synapse
299 302 }
300 303 catch (IOError err)
301 304 {
  305 + warning ("%s", err.message);
302 306 allowed = false;
303 307 }
304 308 }

0 comments on commit ccfdd95

Please sign in to comment.
Something went wrong with that request. Please try again.