Fix a bug about getting splash image path 45/310345/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:12:28 +0000 (09:12 +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 39a3341718460e948b9b39ba81801d1db409191a..7586e252065876b07ea3818d0466bf682c932aec 100644 (file)
@@ -1016,7 +1016,8 @@ void StepParseManifest::AppendSplashScreen(application_x* app,
   if (bf::path(src).is_absolute()) {
     splashscreen->src = strdup(src.c_str());
   } else {
-    bf::path full_path = context_->GetPkgPath() / src;
+    bf::path full_path =
+        context_->GetPkgPath() / "shared" / "res" / bf::path(src).filename();
     splashscreen->src = strdup(full_path.string().c_str());
   }
   if (src.substr(src.find_last_of(".") + 1) == "edj")