Electron doesn't have a config file to parse 40/171340/3
authorsurya.kumar7 <surya.kumar7@samsung.com>
Thu, 1 Mar 2018 15:41:39 +0000 (21:11 +0530)
committerjaekuk lee <juku1999@samsung.com>
Mon, 5 Mar 2018 04:33:18 +0000 (04:33 +0000)
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 <surya.kumar7@samsung.com>
atom/app/atom_main.cc

index c71f3dd..522e499 100644 (file)
@@ -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<const char**>(argv)))