Change the initialization sequence.
authorSung-jae Park <nicesj.park@samsung.com>
Mon, 9 Feb 2015 08:15:04 +0000 (17:15 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Mon, 9 Feb 2015 08:15:04 +0000 (17:15 +0900)
[model] Redwood,Kiran,B3(Wearable)
[binary_type] AP
[customer] Docomo/Orange/ATT/Open
[issue#] N/A
[problem]
[cause]
[solution]
[team] HomeTF
[request]
[horizontal_expansion]

Change-Id: I1900f8dc05d79b893cdbbcaf05e19e668800ec78

src/main.c

index 97d1723..c7fcf3e 100644 (file)
@@ -350,6 +350,12 @@ int main(int argc, char *argv[])
                return -EFAULT;
        }
 
+       ecore_app_args_set(argc, (const char **)argv);
+
+#if (GLIB_MAJOR_VERSION <= 2 && GLIB_MINOR_VERSION < 36)
+       g_type_init();
+#endif
+
        if (util_screen_init() <= 0) {
                ecore_shutdown();
                return -EFAULT;
@@ -413,12 +419,6 @@ int main(int argc, char *argv[])
                CRITICAL_LOG("Signal handler initiated: %d\n", ret);
        }
 
-       ecore_app_args_set(argc, (const char **)argv);
-
-#if (GLIB_MAJOR_VERSION <= 2 && GLIB_MINOR_VERSION < 36)
-       g_type_init();
-#endif
-
        app_create();
        sd_notify(0, "READY=1");