Change default symlink of service application 37/260037/1
authorDongHyun Song <dh81.song@samsung.com>
Fri, 18 Jun 2021 00:29:09 +0000 (09:29 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Fri, 18 Jun 2021 00:29:09 +0000 (09:29 +0900)
[Before]
  wrt-service-launcher: 'type' attribute exists
  wrt-service: default

[After]
  wrt-service-launcher: default
  wrt-service: 'type' is 'standalone'

This will apply thread model of service application as default
for all profile.

Change-Id: I4102cf529bd341793ffed29b218ae697157665ed
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
src/wgt/step/filesystem/step_create_wgt_symbolic_link.cc

index 3b9f132..1ddd796 100644 (file)
@@ -63,10 +63,10 @@ bool StepCreateWgtSymbolicLink::CreateSymlinksForApps() {
       bf::create_symlink(bf::path(kWRTPath), exec_path, error);
     } else if (strcmp(app->component_type, "widgetapp") == 0) {
       bf::create_symlink(kWebWidgetRuntimeBinaryPath, exec_path, error);
-    } else if (!service_app_type[app->appid].empty()) {
-      bf::create_symlink(kWrtServiceLauncherBinaryPath, exec_path, error);
-    } else {
+    } else if (service_app_type[app->appid] == "standalone") {
       bf::create_symlink(kWrtServiceBinaryPath, exec_path, error);
+    } else {
+      bf::create_symlink(kWrtServiceLauncherBinaryPath, exec_path, error);
     }
     if (error) {
       LOG(ERROR) << "Failed to set symbolic link "