Remove unnecessary bundle key 62/121362/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 28 Mar 2017 01:06:48 +0000 (10:06 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 28 Mar 2017 01:10:53 +0000 (10:10 +0900)
The K_CAN_BE_LEADER key is for special apps.

Change-Id: Ie6ab571daea5c9a67a63245f1ff8e056b1a8b4db
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launch_with_result.c

index 86dc723..1686288 100644 (file)
@@ -27,7 +27,9 @@
 #include "aul_util.h"
 #include "launch.h"
 
-/*#define ACTIVATE_PREEMPT_FEATURE*/
+#ifndef K_CAN_BE_LEADER
+#define K_CAN_BE_LEADER "__K_CAN_BE_LEADER__"
+#endif
 
 typedef struct _app_resultcb_info_t {
        int launched_pid;
@@ -385,6 +387,8 @@ API int aul_forward_app(const char* pkgname, bundle *kb)
        if (__set_caller_info(kb) < 0)
                return AUL_R_EINVAL;
 
+       bundle_del(kb, K_CAN_BE_LEADER);
+
        dupb = bundle_dup(kb);
        if (dupb == NULL) {
                _E("bundle duplicate fail");