GNOME Bugzilla – Bug 610880
lazily initialize the daemon
Last modified: 2010-07-01 12:35:59 UTC
Right now, notify_init() causes the daemon to be D-Bus activated already, even if the program that calls it doesn't send an actual notification for a long time (or potentially not at all). In order to optimize startup speed, and avoid needlessly running programs it would be nice if the daemon would be launched on demand, instead of right away. Thanks for considering!
Created attachment 154544 [details] [review] lazily start the daemon
Looks good. Pushed to master. Thanks!
Sorry, this caused an assertion to be thrown when a process never sends any notification and then uninits. Simple fix, I committed directly: http://git.gnome.org/browse/libnotify/commit/?id=1a103f1eee373882a7ed5e2225fcd23bb10ecbc8