Support Seamless Effect 90/215390/3
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 8 Oct 2019 00:41:12 +0000 (09:41 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 10 Oct 2019 10:18:56 +0000 (19:18 +0900)
- Sets application ID for display server

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/amd/+/212912/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-core/+/215390/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/aul-1/+/212287/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/screen-connector/+/212645/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/widget-viewer/+/213445/

Change-Id: I6657203c1a320510d19ad26d0fe12dee9f79442a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/ui_base/appcore_ui_base.c

index e3a545b..eeac2b3 100644 (file)
@@ -552,6 +552,16 @@ static void __unset_bg_state(void)
        _DBG("bg state: %d", __context.bg_state);
 }
 
+static void __set_app_id(void)
+{
+       if (!tz_policy && __init_wl() < 0)
+               return;
+
+       tizen_policy_set_appid(tz_policy, getpid(), __context.appid);
+       wl_display_roundtrip(dsp);
+       _DBG("set appid: %s", __context.appid);
+}
+
 static void __do_start(bundle *b)
 {
        const char *bg_launch;
@@ -1019,6 +1029,8 @@ EXPORT_API int appcore_ui_base_init(appcore_ui_base_ops ops, int argc, char **ar
                }
        }
 
+       __set_app_id();
+
        return appcore_base_init(ops.base, argc, argv, data);
 }