elementary: add debugging information to quicklaunch binary.

This commit is contained in:
Cedric BAIL 2017-11-07 15:50:13 -08:00
parent e729d6b994
commit 4f70a29580
1 changed files with 10 additions and 1 deletions

View File

@ -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();