From ee6b80d3e7929fd8671b118f5e6fa21902b19a71 Mon Sep 17 00:00:00 2001 From: Inhwan Lee Date: Tue, 25 Apr 2017 13:10:08 +0900 Subject: [PATCH] fix standalone crash issue Change-Id: I62c0a302248bdd0f6a304300f6ba535604acf39d --- NativeLauncher/launcher/main.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.7.4