Fix crash when switching to Timer tab in Clock app 1.0_post
authorPatrick McCarty <patrick.mccarty@linux.intel.com>
Mon, 23 Jul 2012 20:14:57 +0000 (13:14 -0700)
committerPatrick McCarty <patrick.mccarty@linux.intel.com>
Mon, 23 Jul 2012 21:50:38 +0000 (14:50 -0700)
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>
alarm-lib.c
alarm-manager.c
packaging/alarm-manager.changes

index da24dbd..3055d49 100755 (executable)
@@ -190,7 +190,7 @@ static int __sub_init()
        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");
 
index 5e4bac6..db06265 100755 (executable)
@@ -2344,7 +2344,7 @@ static bool __initialize_dbus()
        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");
index dc47191..fae2657 100644 (file)
@@ -1,3 +1,6 @@
+* 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