#define ENV_FILE_PATH "/usr/share/dotnet.tizen/lib/coreclr_env.list"
#define AOT_METADATA_KEY "http://tizen.org/metadata/prefer_dotnet_aot"
#define AOT_METADATA_VALUE "true"
-#define APP_NI_SUB_DIR "/.native_image"
+#define APP_NI_SUB_DIR ".native_image"
#endif //__LAUNCHER_ENV_H_
\ No newline at end of file
std::string appLib = concatPath(appRoot, "lib");
std::string appTAC = concatPath(appBin, ".TAC.Release");
std::string probePath = appBin + ":" + appLib + ":" + appTAC;
- std::string NIprobePath = appBin + APP_NI_SUB_DIR + ":" + appLib + APP_NI_SUB_DIR + ":" + appTAC;
+ std::string NIprobePath = concatPath(appBin, APP_NI_SUB_DIR) + ":" + concatPath(appLib, APP_NI_SUB_DIR) + ":" + appTAC;
std::string tpa = getTPA();
std::string nativeLibPath = getExtraNativeLibDirs(appRoot) + ":" + appBin + ":" + appLib + ":" + __nativeLibDirectory;
std::string appName = std::string("dotnet-launcher-") + std::to_string(getpid());
std::string prevPath = niPath.substr(0, index);
std::string fileName = niPath.substr(index, niPath.length());
- std::string niDirPath = prevPath + APP_NI_SUB_DIR;
+ std::string niDirPath = concatPath(prevPath, APP_NI_SUB_DIR);
if (!isFileExist(niDirPath)) {
if (mkdir(niDirPath.c_str(), 0755) == 0) {
removeNiUnderDirs(paths, 2);
- std::string binNIDir = binDir + APP_NI_SUB_DIR;
+ std::string binNIDir = concatPath(binDir, APP_NI_SUB_DIR);
if (isFileExist(binNIDir)) {
if (rmdir(binNIDir.c_str()) != 0) {
fprintf(stderr, "Failed to remove app ni dir [%s]\n", binNIDir.c_str());
}
}
- std::string libNIDir = libDir + APP_NI_SUB_DIR;
+ std::string libNIDir = concatPath(libDir, APP_NI_SUB_DIR);
if (isFileExist(libNIDir)) {
if (rmdir(libNIDir.c_str()) != 0) {
fprintf(stderr, "Failed to remove app ni dir [%s]\n", libNIDir.c_str());