This is needed for 'contacts' calendar backend, to not call main
context iteration when it is run in a dedicated thread, but call
it in both factories, just in case.
#endif
#include <libedata-book/e-data-book-factory.h>
+#include <libedataserver/e-gdbus-templates.h>
static gboolean opt_keep_running = FALSE;
static gboolean opt_wait_for_client = FALSE;
/* Migrate user data from ~/.evolution to XDG base directories. */
evolution_addressbook_factory_migrate_basedir ();
+ e_gdbus_templates_init_main_thread ();
+
server = e_data_book_factory_new (NULL, &error);
if (error != NULL) {
#endif
#include <libedata-cal/e-data-cal-factory.h>
+#include <libedataserver/e-gdbus-templates.h>
static gboolean opt_keep_running = FALSE;
static gboolean opt_wait_for_client = FALSE;
/* Migrate user data from ~/.evolution to XDG base directories. */
evolution_calendar_factory_migrate_basedir ();
+ e_gdbus_templates_init_main_thread ();
+
server = e_data_cal_factory_new (NULL, &error);
if (error != NULL) {