services & auto activation

John (J5) Palmieri johnp at redhat.com
Fri Mar 14 08:37:12 PDT 2008


On Fri, 2008-03-14 at 11:04 +0100, mehdi bayarassou wrote:
> Hi,
> I am new on DBus.
> I have to develop an application in C in which i can start
> applications through DBus. I want some further information about auto
> activation mechanism, .service files, XML descriptor files ( i have
> read some docs about those terms but it is not clear to me).
> can i define applications as services by creating service files? if it
> is possible, how it is possible?
> thanks 
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus

If you look in /usr/share/dbus-1/services you can see a number of
service examples.  For instance gnome-vfs-daemon.service looks like
this:

[D-BUS Service]
Name=org.gnome.GnomeVFS.Daemon
Exec=/usr/libexec/gnome-vfs-daemon

Those are session services for system services (available in versions >=
1.1.20) the directory would be /usr/share/dbus-1/system-services and
adds the user keyword:

[D-BUS Service]
Name=fi.epitest.hostap.WPASupplicant
Exec=/usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf
-u -f
User=root

-- 
John (J5) Palmieri <johnp at redhat.com>



More information about the dbus mailing list