Fix a bug about getting splash image path 43/310343/1
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 26 Apr 2024 00:01:13 +0000 (09:01 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 26 Apr 2024 00:01:13 +0000 (09:01 +0900)
If the path of the splash image source is not absolute, the patch should be
"<package path>/shared/res/<filename>".

Change-Id: Ib3a784fdc44c7b12e8ff8f02f00cd0cbf026f20e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/common/step/configuration/step_parse_manifest.cc

index a12a8cc3b7d99adc9969a83588ec208d3b536fe5..915a6798ffdc505dfd64a45af1f9152a9a3bdfd8 100644 (file)
@@ -1017,7 +1017,8 @@ void StepParseManifest::AppendSplashScreen(application_x* app,
   if (fs::path(src).is_absolute()) {
     splashscreen->src = strdup(src.c_str());
   } else {
-    fs::path full_path = context_->GetPkgPath() / src;
+    fs::path full_path =
+        context_->GetPkgPath() / "shared" / "res" / fs::path(src).filename();
     splashscreen->src = strdup(full_path.c_str());
   }
   if (src.substr(src.find_last_of(".") + 1) == "edj")