changeset 1440:acdc12679d1a trunk

[svn] - allow environment variable AUDTOOL_REMOTE_URI to influence where the client library accesses the audacious session
author nenolod
date Fri, 28 Jul 2006 00:49:14 -0700
parents bd0b46c8a70e
children ed80e946f30b
files ChangeLog audtool/audtool.c
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Jul 28 00:46:34 2006 -0700
+++ b/ChangeLog	Fri Jul 28 00:49:14 2006 -0700
@@ -1,3 +1,12 @@
+2006-07-28 07:46:34 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [1792]
+  - i believe we've got it!
+  
+
+  Changes:        Modified:
+  +17 -12         trunk/libaudacious/beepctrl.c  
+
+
 2006-07-28 07:33:37 +0000  William Pitcock <nenolod@nenolod.net>
   revision [1790]
   - make the remote API actually work
--- a/audtool/audtool.c	Fri Jul 28 00:46:34 2006 -0700
+++ b/audtool/audtool.c	Fri Jul 28 00:49:14 2006 -0700
@@ -89,6 +89,7 @@
 gint main(gint argc, gchar **argv)
 {
 	gint i;
+	gchar *remote_uri;
 
 	if (argc < 2)
 	{
@@ -98,6 +99,9 @@
 		exit(0);
 	}
 
+	remote_uri = getenv("AUDTOOL_REMOTE_URI");
+	audacious_set_session_uri(remote_uri);
+
 	if (!xmms_remote_is_running(0) && g_strcasecmp("help", argv[1])
 		&& g_strcasecmp("list-handlers", argv[1]))
 	{