From 4f70a295801b5fd7600d43b3aaa90241165c4ac5 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Tue, 7 Nov 2017 15:50:13 -0800 Subject: [PATCH] elementary: add debugging information to quicklaunch binary. --- src/bin/elementary/quicklaunch.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/bin/elementary/quicklaunch.c b/src/bin/elementary/quicklaunch.c index 765806e823..b7fec56740 100644 --- a/src/bin/elementary/quicklaunch.c +++ b/src/bin/elementary/quicklaunch.c @@ -109,6 +109,7 @@ handle_run(int fd, unsigned long bytes) CRI("no bytes to quicklaunch"); return; } + DBG("Starting building up process."); _elm_startup_time = ecore_time_unix_get(); buf = alloca(bytes); @@ -157,9 +158,15 @@ handle_run(int fd, unsigned long bytes) } } #endif + + INF("Requested to run '%s' with %i arguments and %i environment.", + argv[0], argc - 1, envnum); // Try new form before trying old form if (!efl_quicklaunch_prepare(argc, argv, cwd)) - elm_quicklaunch_prepare(argc, argv, cwd); + { + WRN("Failed to prepare with new EFL_MAIN macro, switching to legacy."); + elm_quicklaunch_prepare(argc, argv, cwd); + } elm_quicklaunch_fork(argc, argv, cwd, post_fork, NULL); elm_quicklaunch_cleanup(); @@ -329,6 +336,8 @@ main(int argc, char **argv) len = sizeof(struct sockaddr_un); fd = accept(sock, (struct sockaddr *)&client, &len); + + DBG("Accepting connection."); elm_quicklaunch_sub_init(argc, argv); // don't seed since we are doing this AFTER launch request // elm_quicklaunch_seed();