Commit 6c464c3c authored by Rafaël Carré's avatar Rafaël Carré

Simplification of one-instance mode

It now checks if a capable "Media Player" is running, not only VLC.
parent 9dc29b4f
......@@ -20,6 +20,13 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
#
#
# NOTE: this controller is a SAMPLE, and thus doesn't implement all the D-Bus Media Player specification. http://wiki.videolan.org/index.php/DBus-spec
# This is an unfinished document (on the 12/06/2006) and has been designed to be as general as possible.
# So don't expect that much from this, but basic capabilities should work out of the box (Play/Pause/Next/Add)
#
# Also notice it has been designed first for a previous specificaiton, and thus some code may not work/be disabled
#
import dbus
import dbus.glib
import gtk
......
......@@ -573,9 +573,6 @@ static int Open( vlc_object_t *p_this )
return VLC_EGENERIC;
}
/* we unregister the object /, registered by libvlc */
dbus_connection_unregister_object_path( p_conn, "/" );
/* we register the objects */
dbus_connection_register_object_path( p_conn, VLC_DBUS_ROOT_PATH,
&vlc_dbus_root_vtable, p_this );
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment