From: Inhwan Lee Date: Tue, 25 Apr 2017 04:10:08 +0000 (+0900) Subject: fix standalone crash issue X-Git-Tag: submit/tizen/20170426.002751~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee6b80d3e7929fd8671b118f5e6fa21902b19a71;p=platform%2Fcore%2Fdotnet%2Flauncher.git fix standalone crash issue Change-Id: I62c0a302248bdd0f6a304300f6ba535604acf39d --- diff --git a/NativeLauncher/launcher/main.cc b/NativeLauncher/launcher/main.cc index 5754589..2bbda72 100644 --- a/NativeLauncher/launcher/main.cc +++ b/NativeLauncher/launcher/main.cc @@ -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;