diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2018-05-31 07:42:06 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2018-05-31 07:42:06 +0900 |
commit | 0f2ecb5f06ecf891589c1b4dceb9c5debfcb4aa5 (patch) | |
tree | 22d812998a363ab1ef21bda85aeb49cd97fad696 | |
parent | d30ea372aac6d2d435abaaf87c82aa03a4c23197 (diff) | |
download | aul-1-0f2ecb5f06ecf891589c1b4dceb9c5debfcb4aa5.tar.gz aul-1-0f2ecb5f06ecf891589c1b4dceb9c5debfcb4aa5.tar.bz2 aul-1-0f2ecb5f06ecf891589c1b4dceb9c5debfcb4aa5.zip |
Skip app existence check
To improve launch performance, checking an application existence of
app_launcher tool is removed.
Change-Id: If09a4211aad051c891c332187b768864d800c201
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r-- | tool/app_launcher.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tool/app_launcher.c b/tool/app_launcher.c index ad2e7b2b..bd1f6b44 100644 --- a/tool/app_launcher.c +++ b/tool/app_launcher.c @@ -353,8 +353,13 @@ static int __cmd_start_run(struct launch_arg *arg) } if (arg->pid <= 0) { - printf("... launch failed\n"); - return -1; + if (arg->pid == AUL_R_ENOAPP) { + printf("The app with ID: %s is not avaible for the user %d\n", + arg->appid, arg->uid); + } else { + printf("... launch failed\n"); + } + return -1; } return 0; @@ -674,7 +679,7 @@ static struct command cmd_table[] = { }, [CMD_START] = { .name = "start", - .init = __cmd_common_init, + .init = NULL, .run = __cmd_start_run, .finish = __cmd_start_finish }, |