From 29ad9904acb9d6ec0885721e8aa59e3f13794d5f Mon Sep 17 00:00:00 2001 From: Jinhyung Choi Date: Wed, 29 Mar 2017 14:31:23 +0900 Subject: [PATCH] appcmd: modify runapp command for watchapp type Change-Id: If92e6400b7e88c33ee088fe551127778b962df2e Signed-off-by: Jinhyung Choi --- src/default_plugin_appcmd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/default_plugin_appcmd.c b/src/default_plugin_appcmd.c index c929cf2..643fb77 100644 --- a/src/default_plugin_appcmd.c +++ b/src/default_plugin_appcmd.c @@ -128,7 +128,10 @@ static int appcmd_runapp_gen_shellcmd(appcmd_info* p_info) { D("args: appid=%s\n", appid); - snprintf(buf, len, "/usr/bin/app_launcher --start %s", appid); + snprintf(buf, len, "/usr/bin/pkginfo --app %s | grep component: | awk '{print $2}'" + " | while read var; do if [ $var = watchapp ]; then /usr/bin/app_launcher " + "--start org.tizen.widget_viewer_sdk widget_id %s; else /usr/bin/app_launcher " + "--start %s; fi; done", appid, appid, appid); return 0; } -- 2.7.4