From 5fa5144e2853520b7804d9f42652abd97106b974 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Sun, 29 Apr 2012 21:30:47 -0500 Subject: enlightenment: don't delay opening when .configure is found. --- abs/core/enlightenment/PKGBUILD | 4 ++-- abs/core/enlightenment/startup.patch | 25 ++++++++++++++++--------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/abs/core/enlightenment/PKGBUILD b/abs/core/enlightenment/PKGBUILD index 8c9c986..0c5ce00 100644 --- a/abs/core/enlightenment/PKGBUILD +++ b/abs/core/enlightenment/PKGBUILD @@ -4,7 +4,7 @@ pkgname=enlightenment pkgver=1.0.10 _themever=1.0.1 -pkgrel=2 +pkgrel=4 pkgdesc="A fast, flexible, and very extensible Window Manager" arch=('i686' 'x86_64') url="http://www.enlightenment.org" @@ -36,4 +36,4 @@ package() { # chown -R root:root "${pkgdir}"/usr/share/* } md5sums=('87441a2e7c4639e5d23198ed7bc834ea' - '7461fc1214752c98b542e672701a4719') + '75d83333bfaa4ecbe7678875b947846e') diff --git a/abs/core/enlightenment/startup.patch b/abs/core/enlightenment/startup.patch index 136f848..6e26f75 100644 --- a/abs/core/enlightenment/startup.patch +++ b/abs/core/enlightenment/startup.patch @@ -1,6 +1,6 @@ ---- src/startup.c.orig 2011-11-15 22:01:02.939243595 +0000 -+++ src/startup.c 2011-11-15 22:01:33.682575674 +0000 -@@ -173,5 +173,39 @@ +--- src/startup.orig 2012-04-29 21:43:59.424202996 +0000 ++++ src/startup.c 2012-04-29 22:19:28.350782803 +0000 +@@ -173,5 +173,46 @@ Mode.place.enable_features--; ESync(ESYNC_STARTUP); @@ -13,8 +13,19 @@ + int result; + const char *filename = "/tmp/nofe"; + result = access (filename, F_OK); -+ -+ if( result != 0 ) ++ int result_config; ++ const char *homedir = "HOME"; ++ char *value; ++ value = getenv(homedir); ++ char *filename_config; ++ filename_config = strcat(value , "/.configure"); ++ result_config = access (filename_config, F_OK); ++ ++ if( result == 0 || result_config ==0 ) ++ { ++ printf("Found /tmp/nofe, skipping delay\n"); ++ } ++ else + { + printf("Waiting for Mythfrontend\n"); + int i; @@ -31,10 +42,6 @@ + else + printf("MythFrontned found, continue startup\n"); + } -+ else -+ { -+ printf("Found /tmp/nofe, skipping delay\n"); -+ } + // End of delay code + + -- cgit v0.12