Update for AppPath
authorJaesung Ku <jaesung.ku@samsung.com>
Fri, 12 Apr 2013 12:45:43 +0000 (21:45 +0900)
committerJaesung Ku <jaesung.ku@samsung.com>
Fri, 12 Apr 2013 12:45:43 +0000 (21:45 +0900)
Change-Id: I1ffbf91854adee97ca5e8464c527a56457dd9248
Signed-off-by: Jaesung Ku <jaesung.ku@samsung.com>
src/app/FApp_AppInfo.cpp

index 892a4f8..20db932 100644 (file)
@@ -164,6 +164,7 @@ _AppInfo::Construct(const char* appId, const char* exeName, int argc, char* argv
                int len = strlen(PACKAGE_PATH_FORMAT2);
                strncpy(appInfoPath, PACKAGE_PATH_FORMAT2, len);
                appInfoPath[len] = '\0';
+               strncpy(appInfoPath + strlen(PATH_ROOT2), appId, MAX_APPID);
 
                if (access(appInfoPath, R_OK) != 0)
                {
@@ -173,12 +174,7 @@ _AppInfo::Construct(const char* appId, const char* exeName, int argc, char* argv
                        
                        strncpy(appInfoPath + strlen(PATH_ROOT), appId, MAX_APPID);
                }
-               else
-               {
-                       strncpy(appInfoPath + strlen(PATH_ROOT2), appId, MAX_APPID);
-               }
 #endif
-
                // app root directory file descriptor
                __appRootDirFd = open(appInfoPath, O_RDONLY | O_CLOEXEC | O_DIRECTORY);