Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : apps/euphoria
Dir : e17/apps/euphoria/src
Modified Files:
euphoria.c
Log Message:
if DBUS_PATH is set, use that path to connect to xmms2d
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/src/euphoria.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- euphoria.c 27 Feb 2004 23:15:27 -0000 1.6
+++ euphoria.c 29 Feb 2004 13:38:13 -0000 1.7
@@ -1,5 +1,5 @@
/*
- * $Id: euphoria.c,v 1.6 2004/02/27 23:15:27 tsauerbeck Exp $
+ * $Id: euphoria.c,v 1.7 2004/02/29 13:38:13 tsauerbeck Exp $
* vim:noexpandtab:sw=4:sts=4:ts=4
*/
@@ -69,14 +69,17 @@
}
static bool setup_xmms(Euphoria *e) {
- char path[PATH_MAX + 1];
+ char *dbus_path, path[PATH_MAX + 1];
if (!(e->xmms = xmmsc_init()))
return false;
- snprintf(path, sizeof(path), "unix:path=/tmp/xmms-dbus-%s", get_login());
+ if (!(dbus_path = getenv("DBUS_PATH"))) {
+ snprintf(path, sizeof(path), "unix:path=/tmp/xmms-dbus-%s",
get_login());
+ dbus_path = path;
+ }
- xmmsc_connect(e->xmms, path);
+ xmmsc_connect(e->xmms, dbus_path);
xmmsc_setup_with_ecore(e->xmms);
xmmsc_playback_status(e->xmms);
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs