Modify -f option of app_launcher tool 33/303633/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 2 Jan 2024 22:12:09 +0000 (07:12 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 2 Jan 2024 22:12:09 +0000 (07:12 +0900)
If amd is ready, the tool removes the AUL_K_FAST_LAUNCH key from
the bundle object.

Change-Id: I13f5ff1b9e40b4e6fd62e15e5a17e27ab1de7747
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
tool/app_launcher/app_launcher.c

index 57e3a18..44b411a 100644 (file)
@@ -627,8 +627,10 @@ static int __cmd_fast_start_run(struct launch_arg *arg)
 {
        int fd;
 
-       if (!access(PATH_AMD_READY, F_OK))
+       if (!access(PATH_AMD_READY, F_OK)) {
+               bundle_del(arg->b, AUL_K_FAST_LAUNCH);
                return __cmd_start_run(arg);
+       }
 
        fd = aul_sock_create_launchpad_client_without_timeout(
                        LAUNCHPAD_PROCESS_POOL_SOCK, arg->uid);