From: 이형주/Common Platform Lab(SR)/삼성전자 Date: Wed, 23 Feb 2022 00:21:35 +0000 (+0900) Subject: Fix app ni path for readonly app (#389) X-Git-Tag: accepted/tizen/unified/20220223.132451^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9bb8350c24007e44e477ebd3d40211b3e0770564;p=platform%2Fcore%2Fdotnet%2Flauncher.git Fix app ni path for readonly app (#389) There was a bug in setting the app ni path when RO installed app was updated. To fix this bug, check root path whether read-only area or not. Co-authored-by: Woongsuk Cho --- diff --git a/NativeLauncher/util/path_manager.cc b/NativeLauncher/util/path_manager.cc index 664da52..a91cad6 100644 --- a/NativeLauncher/util/path_manager.cc +++ b/NativeLauncher/util/path_manager.cc @@ -160,7 +160,7 @@ void PathManager::setAppRootPath(const std::string& rootPath) // check readonly update directory eixst or not std::string niRootPath = replaceAll(appRootPath, getBaseName(appRootPath), __READ_ONLY_APP_UPDATE_DIR); - if (isDirectory(niRootPath)) { + if (isReadOnlyArea(appRootPath) && isDirectory(niRootPath)) { appNIRootPath = getAbsolutePath(niRootPath); } else { appNIRootPath = appRootPath;