GNOME Bugzilla – Bug 748338
Missing check in misc/loginManager.js for CanSuspend
Last modified: 2015-04-23 08:44:16 UTC
According to systemd logind's documentation, the CanSuspend() method "returns 'na' in case "the operation is not available because hardware, kernel or drivers do not support it", while "'no' is returned if the operation is available but the user is not allowed to execute it". http://www.freedesktop.org/wiki/Software/systemd/logind Thus, we need to return true here when the reply for the CanSuspend method is neither 'no' nor 'na', or we would providing false positives in cases where suspension is simply unsupported. A simple patch is on the way...
Created attachment 302187 [details] [review] Patch proposal Here comes a simple patch, tested locally and works fine. Please review, thanks!
Review of attachment 302187 [details] [review]: OK
Review of attachment 302187 [details] [review]: Thanks, committed