Skip to content
Commit 76dab073 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

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
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