summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2024-04-26 09:01:13 +0900
committerHwankyu Jhun <h.jhun@samsung.com>2024-04-26 09:01:13 +0900
commit6268f9bf24469fffdb5038f3ddd17f52da244cc5 (patch)
treef993c730c0ac891f6e6fc4c9413b5f04a24ca24f
parent85072c6b09190b98678d8ca90306631bb9b42734 (diff)
downloadapp-installers-6268f9bf24469fffdb5038f3ddd17f52da244cc5.tar.gz
app-installers-6268f9bf24469fffdb5038f3ddd17f52da244cc5.tar.bz2
app-installers-6268f9bf24469fffdb5038f3ddd17f52da244cc5.zip
Fix a bug about getting splash image path
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>
-rw-r--r--src/common/step/configuration/step_parse_manifest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/step/configuration/step_parse_manifest.cc b/src/common/step/configuration/step_parse_manifest.cc
index a12a8cc3..915a6798 100644
--- a/src/common/step/configuration/step_parse_manifest.cc
+++ b/src/common/step/configuration/step_parse_manifest.cc
@@ -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")