From ff0286b6b6b8b41428ce4d6d5bd24e623e3d64fc Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Fri, 26 Jul 2024 16:54:11 +0900 Subject: [PATCH] proc-monitor: Add support of missing componentbasedapp app type Component-based app contains the UI/Widget/Service components on one process. This app type is added on Tizen 5.5. Before this, remained app type except for ui/widget/service has been handled as GUI app type. In order to remove the confusion, check the accurate app type name to support "componentbasedapp" app type. [1] https://docs.tizen.org/application/native/guides/applications/component-based-app/ Change-Id: I38f47fb826b37c312e79148dc6af2bcd6b3c4c16 Signed-off-by: Chanwoo Choi --- src/process/proc-monitor.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/process/proc-monitor.c b/src/process/proc-monitor.c index 6f709e8..62c2319 100644 --- a/src/process/proc-monitor.c +++ b/src/process/proc-monitor.c @@ -72,6 +72,7 @@ #define APP_TYPE_UI "uiapp" #define APP_TYPE_WIDGET "widgetapp" #define APP_TYPE_WATCH "watchapp" +#define APP_TYPE_COMPONENT_BASED "componentbasedapp" #define APP_TYPE_ROBOT "robotapp" static int current_lcd_state; @@ -1136,6 +1137,9 @@ static int get_app_type(char *pkgtype, int *apptype) *apptype = PROC_TYPE_GUI; } else if (!strncmp(pkgtype, APP_TYPE_ROBOT, sizeof(APP_TYPE_ROBOT))) { *apptype = PROC_TYPE_SERVICE; + } else if (!strncmp(pkgtype, APP_TYPE_COMPONENT_BASED, + sizeof(APP_TYPE_COMPONENT_BASED))) { + *apptype = PROC_TYPE_GUI; } else { _E("Unknown pkgtype is not able to get app type"); return -EINVAL; -- 2.7.4