dbus-lauch --auto-syntax Problem

View: New views
3 Messages — Rating Filter:   Alert me  

dbus-lauch --auto-syntax Problem

by Nirav Rabara :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

I have cross compiled dbus without x11 .

So I am manually launching using evaldbus-launch –auto-syntax’

 

I get following,

DBUS_SESSION_BUS_ADDRESS='unix:path=/tmp/dbus-Iovyb4dv2d guid= c3a6dn834df387i3jhre9483yrn4r3kef7k49fj';

export DBUS_SESSION_BUS_ADDRESS;

DBUS_SESSION_BUS_PID=887;

 

Now to get connected to this session bus I need to manually export DBUS_SESSION_BUS_ADDRESS as below

export DBUS_SESSION_BUS_ADDRESS='unix:path=/tmp/dbus-Iovyb4dv2d guid= c3a6dn834df387i3jhre9483yrn4r3kef7k49fj'

 

this process I need to repeat every time i start my board,

 

Is that possible to lauch dbus session bus and export the generated path and guid( or to remore the need of export ) without doing manually everytime??

 

Your Suggestion would be a great help for me

 

With Regards,

Nirav 


_______________________________________________
dbus mailing list
dbus@...
http://lists.freedesktop.org/mailman/listinfo/dbus

Re: dbus-lauch --auto-syntax Problem

by Thiago Macieira :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Em Quinta-feira 01 Outubro 2009, às 13:35:30, você escreveu:
> Is that possible to lauch dbus session bus and export the generated path
>  and guid( or to remore the need of export ) without doing manually
>  everytime??
>

eval `dbus-launch --auto-syntax`

--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Qt Developer Days 2009 | Registration Now Open!
Munich, Germany: Oct 12 - 14     San Francisco, California: Nov 2 - 4
      http://qt.nokia.com/qtdevdays2009


_______________________________________________
dbus mailing list
dbus@...
http://lists.freedesktop.org/mailman/listinfo/dbus

signature.asc (196 bytes) Download Attachment

RE: dbus-lauch --auto-syntax Problem

by Schmottlach, Glenn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Em Quinta-feira 01 Outubro 2009, às 13:35:30, você escreveu:
> Is that possible to lauch dbus session bus and export the generated path
>  and guid( or to remore the need of export ) without doing manually
>  everytime??
>

>> eval `dbus-launch --auto-syntax`

I believe if you read Nirav's e-mail a little closer you'll see that he is indeed launching the daemon as you suggested. One option we've done in the past is pipe the output above the above command to a file which we then source prior to launching our D-Bus services in another shell. Perhaps Thiago (or anyone else) can suggest an alternative approach which doesn't require caching the environment to a file and then sourcing that file prior to launching the service?


_______________________________________________
dbus mailing list
dbus@...
http://lists.freedesktop.org/mailman/listinfo/dbus