On Thu, Jul 10, 2008 at 7:22 AM, hannehomuth <<a href="mailto:hannehomuth1@gmx.de">hannehomuth1@gmx.de</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi Everyone,<br>
<br>
I'm still at implementing my own Dbus Service. I wanna set some Text on an<br>
LCD Display. I've tried first with a socket server written in Java and it<br>
works. But now I shall do it with Dbus. I've implemented all classes in Java<br>
on a Linux Machine on which it seems to work, if it had such an display on<br>
this machine. But when I try to run my Dbus service on the target machine,<br>
which has no X window, only Console, I get an DbusExecption : Cannot resolve<br>
Session Bus Address.<br>
<br>
I looked at the running processes and there is the dbus-deamon running!</blockquote><div><br>Hi,<br><br>On a modern Free desktop system, there are two instances of dbus-daemon. One is the system bus, and one is the session bus. The session bus is associated with a desktop login session generally.<br>
<br>Is this LCD display something like the Logitech G15 keyboard, or is it an embedded system? In either case what you likely want to do is put your DBus service on the *system* bus, not the session.<br><br>Once it's on the system bus, if this is targeted for a normal desktop system I would use PolicyKit (<a href="http://hal.freedesktop.org/do">http://hal.freedesktop.org/do</a><br>
cs/PolicyKit/) to control access to it. If it's an embedded system, I assume you're running most code as root; in that case just let root write to the service via a conf file in /etc/dbus-1/system.d.<br><br></div>
</div><br>