From e615cf693dea7636a1561f8f76d201a3efe61a31 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 17 May 2014 11:12:12 +1000 Subject: Remove excess sleep and env setting. --- src/extantz/extantz.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'src/extantz/extantz.c') diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c index 07fe817..80306b9 100644 --- a/src/extantz/extantz.c +++ b/src/extantz/extantz.c @@ -544,7 +544,7 @@ void overlay_add(globals *ourGlobals) EAPI_MAIN int elm_main(int argc, char **argv) { GLData *gld = NULL; - char buf[PATH_MAX * 2], *env; + char buf[PATH_MAX * 2]; // Eina_Bool gotWebKit = elm_need_web(); // Initialise ewebkit if it exists, or return EINA_FALSE if it don't. /* Set the locale according to the system pref. @@ -565,21 +565,9 @@ EAPI_MAIN int elm_main(int argc, char **argv) logDom = loggingStartup("extantz", logDom); ourGlobals.running = 1; - // Add extras, so we can run test.lua later. - env = getenv("LUA_CPATH"); - if (!env) env = ""; - sprintf(buf, "%s;%s/src/GuiLua/?.so", env, elm_app_bin_dir_get()); - setenv("LUA_CPATH", buf, 1); - - env = getenv("LUA_PATH"); - if (!env) env = ""; - sprintf(buf, "%s;%s/src/GuiLua/?.lua", env, elm_app_bin_dir_get()); - setenv("LUA_PATH", buf, 1); - - // TODO - Should use Ecore_Exe for this sort of thing, and write a more robust way of connecting to servers than random sleeps. + // TODO - Should use Ecore_Exe for this sort of thing. sprintf(buf, "%s/love &", elm_app_bin_dir_get()); system(buf); - sleep(1); // Don't do this, we need to clean up other stuff to, so set a clean up function below. //elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); -- cgit v1.1