elm init - add args event with ne efl loop args
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 30 May 2016 10:55:43 +0000 (19:55 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 30 May 2016 10:55:43 +0000 (19:55 +0900)
src/lib/elementary/elm_main.c

index 528604c..52e3106 100644 (file)
@@ -329,6 +329,11 @@ elm_init(int argc, char **argv)
    if (_elm_init_count > 1) return _elm_init_count;
    elm_quicklaunch_init(argc, argv);
    elm_quicklaunch_sub_init(argc, argv);
+
+   efl_loop_args_add(ecore_main_loop_get(),
+                     argc - 1,
+                     (argc > 1) ? ((const char **)argv + 1) : NULL);
+
    _prefix_shutdown();
 
    system_handlers[0] =