dbus error


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users dbus error
# 8  
Old 08-22-2011
So reading the man page , looks like the only reason why it won't try to create the ~/.dbus directory is if it attaches to an already existing session. So if "DBUS_SESSION_BUS_ADDRESS" is set, it will just attach itself to it, without invoking a new session, seems like a good way to prevent unnecessary calls.

If you are on redhat, try installing strace, which basically helps you trace the process. Atleast it will confirm if the below is true. Other than that, I have no more ideas on how to debug this. Maybe someone else on the forum has more experience with dbus and can pitch in.

Quote:
If DBUS_SESSION_BUS_ADDRESS is not set for a process that tries to use D-Bus, by default the process will attempt to invoke dbus-launch with the --autolaunch option to start up a new session bus or find the existing bus address on the X display or in a file in ~/.dbus/session-bus/
# 9  
Old 08-22-2011
Ok thanks for the help, $DBUS_SESSION_BUS_ADDRESS is not set

Code:
echo $DBUS_SESSION_BUS_ADDRESS
DBUS_SESSION_BUS_ADDRESS: Undefined variable

throwing it out to anyone else then

dude2cool thanks for the help
# 10  
Old 08-23-2011
It sounds like your daemon is creating its own D-Bus message bus (channel), correct? Or is you daemon simply sending messages to the system message bus?

Are you able to see messages on this message bus using dbus-monitor?

D-Bus is a publish/subscribe mechanism. How are users subscribing to the message bus?
# 11  
Old 08-23-2011
to be honest my knowledge is very limited, i am not 100% what it is doing

How could i use dbus-monitor with the application to see what it is doing?>>

thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

A Dbus signal can be lost?

Hello to everyone! I have a little and simple question. I'm developing a simple application that receives dbus signals . The application works great, but a question is around my head and that is : A dbus signal can be lost ? I read some dbus documentation but didn't clear me this doubt. Thanks! (2 Replies)
Discussion started by: Kovalevsky
2 Replies

2. Programming

How to create a new GType using dbus-Glib?

Hi, I'm trying to use the DBUS connection to communicate with the Marxbot medulla. But when I want to use the interface to send a "SetSpeed" event using the method "SendEventName", I need to create a new GTYPE "DBUS_TYPE_G_INIT16_ARRAY" which is an array of int16. I found this function ... (0 Replies)
Discussion started by: wiem
0 Replies

3. UNIX for Dummies Questions & Answers

/var/run/dbus/system_bus_socket problem

Hello, i have a problem. i have a domain name hosted on a server and it goes very slow and sometimes down. I looked on the processes running and on the netstat status and i discovered that each time there is a slowness or a downtime is caused by: /var/run/dbus/system_bus_socket many of these... (9 Replies)
Discussion started by: dan8354544
9 Replies
Login or Register to Ask a Question