Mount gadget resource paths for NUIGadget
[platform/core/appfw/launchpad.git] / src / lib / launchpad / step_prepare_execution.cc
index 1c19ce0..7da7fa3 100644 (file)
@@ -98,6 +98,13 @@ int StepPrepareExecution::TrustAnchorLaunch(AppInfo* app_info) {
 }
 
 int StepPrepareExecution::MountResourceDirectories(AppInfo* app_info) {
+  if (getenv("LOADER_MOUNT") == nullptr) {
+    if (Util::MountGadgetDirectories(app_info->GetBundle()) != 0) {
+      _E("Failed to mount gadget resources");
+      return -1;
+    }
+  }
+
   int ret = Util::MountResourceDirectories(app_info);
   if (ret < 0) {
     _E("Failed to mount resource direstories. error: %d", ret);