From: Patrick McCarty Date: Mon, 23 Jul 2012 20:14:57 +0000 (-0700) Subject: Fix crash when switching to Timer tab in Clock app X-Git-Tag: submit/trunk/20120814.175930~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2F1.0_post;p=framework%2Fappfw%2Falarm-manager.git Fix crash when switching to Timer tab in Clock app 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 --- diff --git a/alarm-lib.c b/alarm-lib.c index da24dbd..3055d49 100755 --- a/alarm-lib.c +++ b/alarm-lib.c @@ -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"); diff --git a/alarm-manager.c b/alarm-manager.c index 5e4bac6..db06265 100755 --- a/alarm-manager.c +++ b/alarm-manager.c @@ -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"); diff --git a/packaging/alarm-manager.changes b/packaging/alarm-manager.changes index dc47191..fae2657 100644 --- a/packaging/alarm-manager.changes +++ b/packaging/alarm-manager.changes @@ -1,3 +1,6 @@ +* Mon Jul 23 2012 Patrick McCarty f7983c6 +- Fix crash when switching to Timer tab in Clock app + * Thu Jun 28 2012 Patrick McCarty - 0.4.46 - Fix initscript symlinks for alarm-server