fix standalone crash issue 39/126739/2
authorInhwan Lee <ideal.lee@samsung.com>
Tue, 25 Apr 2017 04:10:08 +0000 (13:10 +0900)
committerInhwan Lee <ideal.lee@samsung.com>
Tue, 25 Apr 2017 04:12:44 +0000 (13:12 +0900)
Change-Id: I62c0a302248bdd0f6a304300f6ba535604acf39d

NativeLauncher/launcher/main.cc

index 5754589..2bbda72 100644 (file)
@@ -83,9 +83,12 @@ int main(int argc, char *argv[])
                        const char* appRootPath = aul_get_app_root_path();
                        if (appRootPath != nullptr)
                                appRoot = std::string(appRootPath);
+               } else {
+                       appId = "dotnet-launcher";
                }
+
                if (appRoot.empty())
-                       appRoot = baseName(standalonePath);
+                       appRoot = baseName(baseName(standalonePath));
                if (runtime->initialize(true) != 0) {
                        _ERR("Failed to initialize");
                        return 1;