Add app_id to the launch signal. 50/54050/1 accepted/tizen/mobile/20151214.233224 accepted/tizen/tv/20151214.233234 accepted/tizen/wearable/20151214.233256 submit/tizen/20151214.052927
authorMyungki Lee <mk5004.lee@samsung.com>
Fri, 11 Dec 2015 05:38:04 +0000 (14:38 +0900)
committerMyungki Lee <mk5004.lee@samsung.com>
Fri, 11 Dec 2015 05:38:04 +0000 (14:38 +0900)
Change-Id: Ie94be12733d94a6e8743f702576c258d41f83b29
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
inc/sigchild.h
src/launchpad.c

index 1c93d72..fc26343 100644 (file)
@@ -86,7 +86,7 @@ static inline int __send_app_dead_signal_dbus(int dead_pid)
        return 0;
 }
 
-static inline int __send_app_launch_signal_dbus(int launch_pid)
+static inline int __send_app_launch_signal_dbus(int launch_pid, const char *app_id)
 {
        DBusMessage *message;
 
@@ -99,6 +99,7 @@ static inline int __send_app_launch_signal_dbus(int launch_pid)
 
        if (dbus_message_append_args(message,
                                     DBUS_TYPE_UINT32, &launch_pid,
+                                    DBUS_TYPE_STRING, &app_id,
                                     DBUS_TYPE_INVALID) == FALSE) {
                _E("Failed to load data error");
                return -1;
index bfcab22..ab99f09 100755 (executable)
@@ -1019,7 +1019,7 @@ end:
                close(clifd);
 
        if (pid > 0)
-               __send_app_launch_signal_dbus(pid);
+               __send_app_launch_signal_dbus(pid, menu_info->appid);
 
        if (menu_info != NULL)
                _appinfo_free(menu_info);