Bug 107298

Summary: lib: don't set loaded state until seat is fetched
Product: accountsservice Reporter: Ray Strode [halfline] <rstrode>
Component: generalAssignee: Matthias Clasen <mclasen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: chuchingkai, marius.vollmer, rstrode, stefw
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: lib: don't set loaded state until seat is fetched

Description Ray Strode [halfline] 2018-07-19 17:24:11 UTC
At the moment we set is-loaded on the user-manager
object as soon as we start fetching the seat, but
we should waiting until the seat is fetched, so
that can_switch() will return the correct value
if the caller waited until the loaded signal
to use it.

This commit changes the >= to > which I believe
was the original intention anyway.
Comment 1 Ray Strode [halfline] 2018-07-19 17:24:21 UTC
Created attachment 140717 [details] [review]
lib: don't set loaded state until seat is fetched
Comment 2 Ray Strode [halfline] 2018-07-19 17:36:50 UTC
*** Bug 107250 has been marked as a duplicate of this bug. ***
Comment 3 Ray Strode [halfline] 2018-07-19 17:37:35 UTC
Attachment 140717 [details] pushed as c7fa612 - lib: don't set loaded state until seat is fetched

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.