]> git.sesse.net Git - vlc/commit
single instance: Avoid initializing twice because of dbus activation
authorMirsal Ennaime <mirsal@videolan.org>
Sat, 12 May 2012 13:27:18 +0000 (15:27 +0200)
committerMirsal Ennaime <mirsal@videolan.org>
Sat, 12 May 2012 19:09:12 +0000 (21:09 +0200)
commitbcc158b70019bdd2d1ab647173cb1ea41751f706
tree5b1256b1cca2acd5187e8a878107f2ea7d4a3ea2
parent9984e74dbff847645ae0e63db96bcd249568b7a4
single instance: Avoid initializing twice because of dbus activation

The single instance mode currently tries to contact another VLC instance
through dbus in order to find out if one is running. With dbus activation,
it results to the dbus daemon launching a new VLC instance while the
first one blocks until the new one answers the call

This patch uses org.freedesktop.DBus.NameHasOwner instead in order to get
an answer from the dbus daemon without it launching a second instance.
src/libvlc.c