GNOME Bugzilla – Bug 674551
printers: Move expensive initialization to an idle
Last modified: 2012-04-23 15:43:59 UTC
The start() function is running before gsd finishes its session registration, so everything we do here is in the critical path for session startup. Both cupsGetDests and the subscription registration are potentially expensive, and can very well be done later.
Created attachment 212529 [details] [review] printers: Move expensive initialization to an idle
Hi, thank you for the patch. I've committed a little modified version of it. I left some initializations in gsd_print_notifications_manager_start() for the possibility of calling of gsd_print_notifications_manager_stop() sooner than gsd_print_notifications_manager_start_idle(). Regards Marek