Re: Communicate with Brasero through D-Bus =?UTF-8?Q?=3F?=



On Thu, 27 May 2010 07:40:00 +0200, Josselin Mouette <joss debian org>
wrote:
> Le mardi 25 mai 2010 à 21:18 +0200, ZedTuX a écrit : 
>> On Mon, 24 May 2010 21:32:46 +0200, Josselin Mouette <joss debian org>
>> wrote:
>> > Maybe I’m missing something here, but wouldn’t it be more generic to
>> > program such dock the other way? The board could expose a D-Bus
>> > interface, and plugins for each program would connect to it. All the
>> > difficulty, of course, if to have an interface that is generic enough
>> > and not too complex.
> 
>> If you expose an interface to D-Bus, you don't need any kind of
plugins.
>> Methods are published to the D-Bus server, and my app as a D-Bus client
>> connect to this server to call methods, to get properties or link
himself
>> to signals.
>> 
>> I think I've not really understand your suggestion maybe ?
> 
> I’m afraid so.
> 
> With your approach, you are asking each application you want to support
> to expose a suitable D-Bus API, and you will have to add support for
> each of them in a different way.
> 
> I’m wondering whether you should instead expose a D-Bus API *in the
> dock*, and connect to it from plugins for each of the programs. This
> would make the whole thing simpler and more easily extensible, provided
> that you can design an appropriate D-Bus API.
> 
> Cheers,
> -- 
>  .''`.      Josselin Mouette
> : :' :
> `. `'  “If you behave this way because you are blackmailed by someone,
>   `-    […] I will see what I can do for you.”  -- Jörg Schilling

I'm not sure about that.
D-Bus is a standard implementation of the freedesktop.org, and it's used
by many desktop applications.
It have been done to permit to all applications to communicate together.

There are few applications that doesn't implement D-Bus, and Brasero is
one of them.
Try it, open d-feet, and you will be able to see that there are very few
application that doesn't publish a D-Bus interface.

In any case, if the Brasero project don't implement a D-Bus interface,
that just mean it will not be used by projects (like mine) or with a very
low priority.
( If I don't make a mistake, and I'm 90% sure, all appearing applets in
GNOME are using D-Bus to centralize in menu all informations. See the
messages applet
You should also check the Mark Shuttleworth's Keynote http://goo.gl/D59g )


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]