Mercurial > audlegacy
diff src/audacious/main.c @ 2785:182aa34ae6c4 trunk
[svn] - implement some audacious-remote functions.
- implement some audacious-drct functions.
- make some command line options work. (this may incur very slow startup.)
- suppress warnings.
author | yaz |
---|---|
date | Tue, 22 May 2007 15:17:15 -0700 |
parents | 8249a1248a09 |
children | c539e972b514 |
line wrap: on
line diff
--- a/src/audacious/main.c Sat May 19 16:59:48 2007 -0700 +++ b/src/audacious/main.c Tue May 22 15:17:15 2007 -0700 @@ -50,6 +50,7 @@ #ifdef USE_DBUS # include "dbus-service.h" +# include "audctrl.h" #endif #include "dnd.h" @@ -896,8 +897,9 @@ gboolean remote) { gchar **filenames = options->filenames; -#ifdef HAVE_DBUS - // DBusGProxy *session = audacious_get_dbus_proxy(); +#ifdef USE_DBUS + DBusGProxy *session = audacious_get_dbus_proxy(); + printf("session = %p\n", session); #endif if (options->version) @@ -906,7 +908,7 @@ exit(EXIT_SUCCESS); } -#if 0 +#if 1 if (filenames != NULL) { gint pos = 0; @@ -995,6 +997,14 @@ if (options->playcd) play_medium(); + + printf("remote = %d\n", remote); + { + gboolean is_running = audacious_remote_is_running(session); + printf("is_running %d\n", is_running); + if (is_running) + exit(EXIT_SUCCESS); + } } static void