dbus Digest, Vol 75, Issue 9

Thierry GAYET thierry.gayet at gmail.com
Mon Oct 10 00:07:33 PDT 2011


Hi

Thanks for the reply ; this is was i was planning to do but thanks for the
confirmation.

I am starting my dbus session such as :

    eval `dbus-launch --sh-syntax`
    env | grep DBUS_SESSION_BUS_ADDRESS >
/var/log/thommedia_dbus/thom_dbus_addr
    export `cat /var/log/thommedia_dbus/thom_dbus_addr`

How i can get the address and pass for a dbus connexion ? Then how to use it
in order to initialize the connexion ?

Any C/C++ source code welcome.

Regards

Thierry

2011/10/9 <dbus-request at lists.freedesktop.org>

> Send dbus mailing list submissions to
>        dbus at lists.freedesktop.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.freedesktop.org/mailman/listinfo/dbus
> or, via email, send a message with subject or body 'help' to
>        dbus-request at lists.freedesktop.org
>
> You can reach the person managing the list at
>        dbus-owner at lists.freedesktop.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of dbus digest..."
>
>
> Today's Topics:
>
>   1. Connexion on two dbus session (Thierry GAYET)
>   2. Re: Connexion on two dbus session (Thiago Macieira)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 9 Oct 2011 18:21:01 +0200
> From: Thierry GAYET <thierry.gayet at gmail.com>
> Subject: Connexion on two dbus session
> To: dbus at lists.freedesktop.org
> Message-ID:
>        <CADJRVCgvmtRrfArOyx2Ekgz+umriWkCNLG0F1mGFdY3S94_cvA at mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I have a question about a gnu/Linux architecture based on several dbus.
>
> Indeed, i have two dbus session and one dbus system.
>
> The two dbus session are not communicating directly by through a c++
> process
> that can be associated as a proxy or a firewall.
>
> It was easy to start the several deamons but i wanna know if this is
> possible to make a connexion on the two dbus session in the same process ?
>
> I have seen that the dbus's addess if get from an environment variable but
> only one (the last dbus session launched) is associated to the this unique
> variable.
>
> Thus, when i make a connexion in my program this is always on the same dbus
> session.
>
> Do you know if this is possible in dbus / dbus c++ binding ? i mean without
> any modification of the dbus daemon and/or its library ?
>
> If someone have some example of code it will be quite nice :-)
>
> A+
> Thierry GAYET
> +33.663.849.589
> Skype : terranova44
> www.nextinnovation.org
> www.apprendreindonesien.com
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.freedesktop.org/archives/dbus/attachments/20111009/a42cff72/attachment.htm
> >
>
> ------------------------------
>
> Message: 2
> Date: Sun, 09 Oct 2011 19:27:07 +0200
> From: Thiago Macieira <thiago at kde.org>
> Subject: Re: Connexion on two dbus session
> To: dbus at lists.freedesktop.org
> Message-ID: <1370212.dIJ4nWuzRa at doriath>
> Content-Type: text/plain; charset="us-ascii"
>
> On Sunday, 9 de October de 2011 18:21:01 Thierry GAYET wrote:
> > Do you know if this is possible in dbus / dbus c++ binding ? i mean
> without
> > any modification of the dbus daemon and/or its library ?
> >
> > If someone have some example of code it will be quite nice
>
> It's possible to connect to more than one bus. But you'll need to get the
> address and pass it to the connection function on your own for at least one
> of
> the buses.
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>   Software Architect - Intel Open Source Technology Center
>      PGP/GPG: 0x6EF45358; fingerprint:
>      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 190 bytes
> Desc: This is a digitally signed message part.
> URL: <
> http://lists.freedesktop.org/archives/dbus/attachments/20111009/644d6073/attachment-0001.pgp
> >
>
> ------------------------------
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
>
> End of dbus Digest, Vol 75, Issue 9
> ***********************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20111010/00091839/attachment.htm>


More information about the dbus mailing list