<br>Hi,<br>I think that i'am connection to the session bus <br>i wrote this code<br>conn = dbus_bus_get(DBUS_BUS_SESSION, &err);<br><br><div class="gmail_quote">2008/4/22 mehdi bayarassou <<a href="mailto:mehdibayarassou@gmail.com">mehdibayarassou@gmail.com</a>>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">HI,<br><div class="gmail_quote"><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
what kind of bus are you using ? System or session ?<br></blockquote></div><div>I wrote a code where i connect to the bus in which i call the method ( i'm new on dbus i don't really know if i'm connecting on the system bus or the session one)<br>
</div><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The systembus may not be enabled to start services in the configfile.<br>
See /etc/dbus-1/session.conf.<br>
The filename should be "something.service"</blockquote></div><div>i create a file "myApp.service"and i put it /usr/share/dbus-1/services <br></div><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
What is the username of the bus ? This user has to have access rights r-x on /home/user1/Desktop/myApp<br>
</blockquote></div><div>org.myDevice.myApp <br><br>I have another question is there any possibility to call a method directly. In my code i check if there is a method call and i test for the right interface and method then i execute a code. Can I just call a method and the code is executed?<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
</blockquote></div>Thank you in advance<br><font color="#888888">Mehdi<br>
</font></blockquote></div><br>