GNOME Bugzilla – Bug 689749
Fix asynchronous file loading
Last modified: 2012-12-06 18:37:04 UTC
This recently broke my shell. See patches.
Created attachment 230859 [details] [review] fileUtils: Make sure we properly keep track of how many dirs to load Otherwise we'll complete loading too early, after the first dir has loaded.
Created attachment 230860 [details] [review] fileUtils: Make sure to go to the next dir if we get an error Otherwise, non-existant dirs will keep files from being loaded.
*** Bug 689760 has been marked as a duplicate of this bug. ***
While they fix it for cases where $datadir/gnome-shell/modes is absent, they break it for cases where it is present.
Created attachment 230899 [details] [review] fileUtils: Make sure we properly keep track of how many dirs to load Otherwise there could be a race here, where we'll either stop loading after the first dir has loaded, or we'll not finish if we have an error.
The 2nd patch fixes a problem introduced in the 1st one, so please squash them.
Created attachment 230903 [details] [review] fileUtils: Don't fail if we can't find an error We need to make sure that we decrement the number of dirs that we've loaded, and call the callback on error.
Review of attachment 230903 [details] [review]: Looks good to me
Attachment 230903 [details] pushed as ed12c9d - fileUtils: Don't fail if we can't find an error