Separate initializing for each process. 80/168780/2
authorjinwoo jeong <jw00.jeong@samsung.com>
Wed, 31 Jan 2018 01:52:01 +0000 (10:52 +0900)
committerjaekuk lee <juku1999@samsung.com>
Mon, 26 Feb 2018 06:51:15 +0000 (06:51 +0000)
efl::Initialize is needed by only browser process.

Change-Id: I84ae4c7d342d9c743157592bed363157c632ca28
Signed-off-by: jinwoo jeong <jw00.jeong@samsung.com>
atom/app/atom_main.cc

index 7e2e41e..0d6ea8b 100644 (file)
@@ -144,7 +144,9 @@ int main(int argc, char* argv[]) {
   }
 
 #if defined(USE_EFL)
-  if (efl::Initialize(argc, const_cast<const char**>(argv)))
+  if (argv[0] == "/usr/bin/electron")  // not browser process
+    base::CommandLine::Init(argc, argv);
+  else if (efl::Initialize(argc, const_cast<const char**>(argv)))
     return 1;
 
   // Add params for EFL port