Fix a bug about getting splash image path 44/310344/2
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:08:18 +0000 (09:08 +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 2caedf2412305fcfc47400e2e4500bfcfa9c8885..cce17f07c97a06e0192fb950695f3a9b97dfa120 100644 (file)
@@ -1015,7 +1015,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")