The alarm-server tries to get info from the dbus system bus, but it is
running in the user session, which uses the dbus session bus.
This commit fixes the crash, though there is still an issue with setting
the alarms.
Change-Id: I87665c33518f22ede30a5aa82e3504830fa57490
Signed-off-by: Patrick McCarty <patrick.mccarty@linux.intel.com>
g_thread_init(NULL);
dbus_g_thread_init();
- alarm_context.bus = dbus_g_bus_get(DBUS_BUS_SYSTEM, &error);
+ alarm_context.bus = dbus_g_bus_get(DBUS_BUS_SESSION, &error);
if (alarm_context.bus == NULL) {
ALARM_MGR_EXCEPTION_PRINT("dbus bus get failed\n");
dbus_g_object_type_install_info(ALARM_MANAGER_TYPE_OBJECT,
&dbus_glib_alarm_manager_object_info);
- connection = dbus_g_bus_get(DBUS_BUS_SYSTEM, &error);
+ connection = dbus_g_bus_get(DBUS_BUS_SESSION, &error);
if (!connection) {
ALARM_MGR_EXCEPTION_PRINT("dbus_g_bus_get failed\n");
+* Mon Jul 23 2012 Patrick McCarty <patrick.mccarty@linux.intel.com> f7983c6
+- Fix crash when switching to Timer tab in Clock app
+
* Thu Jun 28 2012 Patrick McCarty <patrick.mccarty@linux.intel.com> - 0.4.46
- Fix initscript symlinks for alarm-server