From 475e388cb630609bec176ec1a0acdf55c30a9a7c Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Sat, 27 Oct 2012 09:17:01 -0500
Subject: enlightenment: add a small delay to give mythfrontend a chance to
 display.  Mostly needed for non-nvidia

---
 abs/core/enlightenment/PKGBUILD      | 2 +-
 abs/core/enlightenment/startup.patch | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/abs/core/enlightenment/PKGBUILD b/abs/core/enlightenment/PKGBUILD
index fc3a256..5a2dcff 100644
--- a/abs/core/enlightenment/PKGBUILD
+++ b/abs/core/enlightenment/PKGBUILD
@@ -36,4 +36,4 @@ package() {
 #  chown -R root:root "${pkgdir}"/usr/share/*
 }
 md5sums=('87441a2e7c4639e5d23198ed7bc834ea'
-         '48e9fda4e20ff4e874accca8318d82ff')
+         'e82de3aa1a20d70da7eb7eae2251f66e')
diff --git a/abs/core/enlightenment/startup.patch b/abs/core/enlightenment/startup.patch
index e24bde5..0841d88 100644
--- a/abs/core/enlightenment/startup.patch
+++ b/abs/core/enlightenment/startup.patch
@@ -31,7 +31,6 @@
 +     int i;
 +     for (i = 0; i < 20; i++)
 +     {
-+
 +        sleep(1);
 +        ret = system("xwininfo -name \"MythTV Frontend\" 2>/dev/null >/dev/null " );
 +        if ( ret == 0 )
@@ -44,6 +43,7 @@
 +      printf("Couldn't find mythfrontend/mythwelcome, starting anyhow \n");
 +     else
 +       printf("MythFrontend or MythWelcome found, continue startup\n");
++    sleep(2);  //sleeping here to give FE a chance to be displayed.
 +   }
 +   // End of delay code
 +
-- 
cgit v0.12

