appcmd: modify runapp command 76/164076/4
authorjihye424.kim <jihye424.kim@samsung.com>
Fri, 15 Dec 2017 06:41:27 +0000 (15:41 +0900)
committerjihye424.kim <jihye424.kim@samsung.com>
Fri, 15 Dec 2017 08:01:38 +0000 (17:01 +0900)
-- check type of application is widget or not before to run application

Change-Id: I0d791cf802ab937a0273df9335e6d91774887d92
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
src/default_plugin_appcmd.c

index 5338854..c360f62 100644 (file)
@@ -129,7 +129,7 @@ static int appcmd_runapp_gen_shellcmd(appcmd_info* p_info) {
     D("args: appid=%s\n", 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 "
+            " | while read var; do if [ $var = watchapp ] || [ $var = widgetapp ]; 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);