From 5b51a6c7345ee4141cc08233d2463ce8ec508cd8 Mon Sep 17 00:00:00 2001 From: "surya.kumar7" Date: Thu, 1 Mar 2018 21:11:39 +0530 Subject: [PATCH] Electron doesn't have a config file to parse config.xml is not present for electron-efl which is unintentionally regarded as a terminal failure and app exits Change-Id: I781a854956c2931bf8492b8f4614438262afe802 Signed-off-by: surya.kumar7 --- atom/app/atom_main.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/atom/app/atom_main.cc b/atom/app/atom_main.cc index c71f3dd4c..522e499c8 100644 --- a/atom/app/atom_main.cc +++ b/atom/app/atom_main.cc @@ -166,10 +166,12 @@ int main(int argc, char* argv[]) { std::string appid = runtime_cmd->GetAppIdFromCommandLine("/usr/bin/electron"); // load manifest - auto appdata_manager = common::ApplicationDataManager::GetInstance(); - common::ApplicationData* appdata = appdata_manager->GetApplicationData(appid); - if (!appdata->LoadManifestData()) { - return false; + if (appid != "electron") { // TODO: Any better way to distinguish? + auto appdata_manager = common::ApplicationDataManager::GetInstance(); + common::ApplicationData* appdata = appdata_manager->GetApplicationData(appid); + if (!appdata->LoadManifestData()) { + return false; + } } if (efl::Initialize(argc, const_cast(argv))) -- 2.34.1