[vlc-devel] [vlc-commits] single instance: Avoid initializing twice because of dbus activation

Rémi Denis-Courmont remi at remlab.net
Sat May 12 21:40:09 CEST 2012


Le samedi 12 mai 2012 22:34:00 Mirsal Ennaime, vous avez écrit :
> vlc | branch: master | Mirsal Ennaime <mirsal at videolan.org> | Sat May 12
> 15:27:18 2012 +0200| [bcc158b70019bdd2d1ab647173cb1ea41751f706] |
> committer: Mirsal Ennaime
> 
> 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.

Why not just disable activation and call the real function directly?

-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis



More information about the vlc-devel mailing list