--- esdlib.c.~1~	2007-04-19 10:43:59.000000000 -0400
+++ esdlib.c	2008-01-06 08:18:16.000000000 -0500
@@ -708,6 +708,9 @@
     if ( !host ) host = getenv("ESPEAKER");
 
     display = getenv( "DISPLAY" );
+#if defined(DRIVER_COREAUDIO)
+	if (strncmp(display,"/tmp/launch-",12)==0) display = "0:0";
+#endif
     if ( !(host && *host) && display ) {
 	/* no espeaker specified, but the app should be directed to a
 	   remote display, so try routing the default port over there

