diff options
author | James Meyer <james.meyer@operamail.com> | 2011-11-25 17:55:01 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2011-11-25 17:55:01 (GMT) |
commit | 50aef368b6fcff0de89bb14de5749c5b9aec0588 (patch) | |
tree | eab7de59cb97e55c38bd591a44713b20ccd498b5 /abs/core/mv/enlightenment/startup.patch | |
parent | 8cdeaf49f1b0fa0d8eca68fb5f4cfaa660933705 (diff) | |
download | linhes_pkgbuild-50aef368b6fcff0de89bb14de5749c5b9aec0588.zip linhes_pkgbuild-50aef368b6fcff0de89bb14de5749c5b9aec0588.tar.gz linhes_pkgbuild-50aef368b6fcff0de89bb14de5749c5b9aec0588.tar.bz2 |
enlighenment: modified version of enlightenment.
This version will pause on startup and wait for mythfrontend to appear.
if /tmp/nofe is present e16 will not wait and continue with normal startup.
Patch will need extra support for mythwelcome.
Diffstat (limited to 'abs/core/mv/enlightenment/startup.patch')
-rw-r--r-- | abs/core/mv/enlightenment/startup.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/abs/core/mv/enlightenment/startup.patch b/abs/core/mv/enlightenment/startup.patch new file mode 100644 index 0000000..136f848 --- /dev/null +++ b/abs/core/mv/enlightenment/startup.patch @@ -0,0 +1,42 @@ +--- 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 @@ + + Mode.place.enable_features--; + ESync(ESYNC_STARTUP); ++ ++ //Start of MythVantage delay for ultra cool startup ++ printf("***\n"); ++ int ret = 1 ; ++ ++ //checking for fname ++ int result; ++ const char *filename = "/tmp/nofe"; ++ result = access (filename, F_OK); ++ ++ if( result != 0 ) ++ { ++ printf("Waiting for Mythfrontend\n"); ++ int i; ++ for (i = 0; i < 20; i++) ++ { ++ ++ sleep(1); ++ ret = system("xwininfo -name \"MythTV Frontend\" 2>/dev/null >/dev/null " ); ++ if ( ret == 0 ) ++ break; ++ } ++ if ( ret != 0 ) ++ printf("Couldn't find mythfrontend, starting anyhow \n"); ++ else ++ printf("MythFrontned found, continue startup\n"); ++ } ++ else ++ { ++ printf("Found /tmp/nofe, skipping delay\n"); ++ } ++ // End of delay code ++ ++ + AnimatorAdd(doStartupWindowsOpen, NULL); + } |