Add appPath to appNIPath accepted/tizen_7.0_unified tizen_7.0 accepted/tizen/7.0/unified/20250425.091957
authorWoongsuk <ws77.cho@samsung.com>
Thu, 24 Apr 2025 21:47:47 +0000 (06:47 +0900)
committerWoongsuk <ws77.cho@samsung.com>
Thu, 24 Apr 2025 21:56:52 +0000 (06:56 +0900)
In case of RPK, The native image and Dll exist in the same location, and
it is mounted to application's "bin" directory. (not in .native_image directory).
And Dlls in RPK is loaded by Assembly.Load() method in Tizen 7.0.

To load native image of RPK, add appPath to appNIPath,

NativeLauncher/util/path_manager.cc

index 2eac3b738e561eb1996d419ecd1e697cd5ce0472..2a062cd5709f04506c0e08bbc11617f12552bd98 100644 (file)
@@ -64,7 +64,7 @@ void PathManager::updateAppRelatedPath(const std::string& appRootPath, const std
 
        appTacPath = concatPath(appBinPath, TAC_SYMLINK_SUB_DIR);
        appPaths = appRootPath + ":" + appBinPath + ":" + appLibPath + ":" + appTacPath;
-       appNIPaths = appNIBinPath + ":" + appNILibPath + ":" + appTacPath;
+       appNIPaths = appNIBinPath + ":" + appNILibPath + ":" + appPaths;
 
        if (!extraDllPaths.empty()) {
                appPaths = appPaths + ":" + extraDllPaths;