power: Don't claim the light sensor if we're not active
Try not to claim the light sensor when our seat isn't active, as this will just throw PolicyKit errors about not being authorised, as happens with gdm trying to change the backlight when we're logged in. Also remove the calls to is_session_active() and use the cached variable when possible. https://bugzilla.gnome.org/show_bug.cgi?id=764896
parent
9858fcc2
Please register or sign in to comment