diff --git a/src/bin/main.c b/src/bin/main.c index 524a6d5..2707479 100644 --- a/src/bin/main.c +++ b/src/bin/main.c @@ -1373,7 +1373,7 @@ main(int argc, char **argv) ui_args(argc, argv); evas_font_hinting_set(evas, EVAS_FONT_HINTING_AUTO); - + while (_engine_go()) { engine_loop(); diff --git a/src/bin/ui.c b/src/bin/ui.c index 30f2b9f..13c2eb5 100644 --- a/src/bin/ui.c +++ b/src/bin/ui.c @@ -453,6 +453,7 @@ _ui_setup(void) { Evas_Object *o; Evas_Coord x, y, w, h; + time_t t0, t; o = evas_object_rectangle_add(evas); evas_object_move(o, 0, 0); @@ -551,6 +552,18 @@ _ui_setup(void) #undef UI _ui_menu_item_add("exit.png", "Exit", _ui_exit); + /* make sure disk io isn't going to turn up unexpectedly */ + sync(); + sync(); + sync(); + /* warm up the cpu with some spinning */ + t0 = time(NULL); + for (;;) + { + t = time(NULL); + if (t - t0 > 2) break; + } + if (run_all) { _ui_all();