From 636867aeface49ac17750d58cc560575137d0b31 Mon Sep 17 00:00:00 2001 From: Myungki Lee Date: Thu, 14 Dec 2017 11:02:19 +0900 Subject: [PATCH] Changed to not return error even if viewer lanch fails Change-Id: I0300e4f8925176cc23370ff2aeb6cc2d31990af4 Signed-off-by: Myungki Lee --- src/notification_service.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/notification_service.c b/src/notification_service.c index 8918b44..b060deb 100755 --- a/src/notification_service.c +++ b/src/notification_service.c @@ -441,7 +441,7 @@ static int _add_noti(GVariant **reply_body, notification_h noti, uid_t uid) priv_id, NOTIFICATION_OP_INSERT, uid); if (ret != NOTIFICATION_ERROR_NONE) { ERR("Failed to launch default viewer [%d]", ret); - return NOTIFICATION_ERROR_IO_ERROR; + ret = NOTIFICATION_ERROR_NONE; } } @@ -708,8 +708,8 @@ static int _update_noti(GVariant **reply_body, notification_h noti, uid_t uid) ret = notification_launch_default_viewer(default_viewer, priv_id, NOTIFICATION_OP_UPDATE, uid); if (ret != NOTIFICATION_ERROR_NONE) { - ERR("Failed to launch (app_control error : %d)", ret); - return NOTIFICATION_ERROR_IO_ERROR; + ERR("Failed to launch default viewer [%d]", ret); + ret = NOTIFICATION_ERROR_NONE; } } @@ -1285,8 +1285,8 @@ int notification_del_noti_single(GVariant *parameters, GVariant **reply_body, ui NOTIFICATION_OP_DELETE, param_uid); if (ret != NOTIFICATION_ERROR_NONE) { - ERR("Failed to launch (app_control error : %d)", ret); - return NOTIFICATION_ERROR_IO_ERROR; + ERR("Failed to launch default viewer [%d]", ret); + ret = NOTIFICATION_ERROR_NONE; } } } @@ -1358,8 +1358,8 @@ int notification_del_noti_multiple(GVariant *parameters, GVariant **reply_body, NOTIFICATION_OP_DELETE_ALL, param_uid); if (ret != NOTIFICATION_ERROR_NONE) { - ERR("Failed to launch (app_control error : %d)", ret); - return NOTIFICATION_ERROR_IO_ERROR; + ERR("Failed to launch default viewer [%d]", ret); + ret = NOTIFICATION_ERROR_NONE; } } } -- 2.7.4