{"id":8,"date":"2006-03-20T18:18:46","date_gmt":"2006-03-20T17:18:46","guid":{"rendered":"http:\/\/blogs.igalia.com\/itoral\/?p=8"},"modified":"2006-03-20T18:18:46","modified_gmt":"2006-03-20T17:18:46","slug":"8","status":"publish","type":"post","link":"https:\/\/blogs.igalia.com\/itoral\/2006\/03\/20\/8\/","title":{"rendered":"Getting started with Dbus"},"content":{"rendered":"<p>Hackfest time at Igalia :), <a href=\"http:\/\/blogs.igalia.com\/svillar\">Sergio<\/a> and me spent some time trying to get started with <em>Dbus<\/em> programming. We begun with a brief look at the <a href=\"http:\/\/dbus.freedesktop.org\/doc\/dbus-tutorial.html\">Dbus Tutorial<\/a>, which was an excellent place to start. However, we got stuck with some minor issues, like the need to manually start the session bus daemon using the <em>dbus-launch<\/em> program and the need to set a couple of environment variables in order to let our program connect to the bus.<\/p>\n<p>Once we solved the above problems, we spent some more time before it worked properly, because we lacked one step when exporting an object using <em>Dbus<\/em>, which is to register the service name. This is done by using the <em>org_freedesktop_DBus_request_name <\/em>function.<\/p>\n<p>Solved the above, all worked fine!. Next step will be to analyze how to substitute <em>bacon-mesage-connection<\/em> in <em>Gedit <\/em>with <em>Dbus<\/em>, but this will be another story ;).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hackfest time at Igalia :), Sergio and me spent some time trying to get started with Dbus programming. We begun with a brief look at the Dbus Tutorial, which was an excellent place to start. However, we got stuck with some minor issues, like the need to manually start the session bus daemon using the &hellip; <a href=\"https:\/\/blogs.igalia.com\/itoral\/2006\/03\/20\/8\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Getting started with Dbus&#8221;<\/span><\/a><\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.igalia.com\/itoral\/wp-json\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.igalia.com\/itoral\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.igalia.com\/itoral\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.igalia.com\/itoral\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.igalia.com\/itoral\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":0,"href":"https:\/\/blogs.igalia.com\/itoral\/wp-json\/wp\/v2\/posts\/8\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.igalia.com\/itoral\/wp-json\/wp\/v2\/media?parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.igalia.com\/itoral\/wp-json\/wp\/v2\/categories?post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.igalia.com\/itoral\/wp-json\/wp\/v2\/tags?post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}