From ef447e76ec8a05a586d3a14bbec4848da2f91601 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Tue, 17 Sep 2019 08:11:38 +0900 Subject: [PATCH] Validate a custom loader process Before sending a launch request, the launchpad checks whether the custom loader is prepared or not. If it's not prepared, the application will be launched by exec(). Change-Id: Ibcd04f8506c41d493f1afd35bbe5c90337eb6443 Signed-off-by: Hwankyu Jhun --- src/launchpad.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/launchpad.c b/src/launchpad.c index 6a676d9..1e11e19 100755 --- a/src/launchpad.c +++ b/src/launchpad.c @@ -1836,6 +1836,8 @@ static gboolean __handle_launch_event(gpointer data) } else { type = LAUNCHPAD_TYPE_DYNAMIC; cpc = __find_slot(type, loader_id); + if (cpc && !cpc->prepared) + cpc = NULL; } } -- 2.7.4