Activation
Simon McVittie
simon.mcvittie at collabora.co.uk
Tue Jan 16 10:03:49 PST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 16 Jan 2007 at 18:08:10 +0100, Luigi Paioro wrote:
> I think I've not understood well how .service files work.
> [...]
> So I've created under <prefix>/share/dbus-1/services (I've got a custom
> D-Bus installation) the file hello.service:
>
> <code>
>
> [D-BUS Service]
> Names=org.freedesktop.HelloWorld
^
All my .service files have Name=whatever, not Names?
> Exec=<where_is_my_program>/HelloTestServer.py
>
> </code>
>
> Then I've started my D-Bus session:
>
> csh > dbus-launch --csh-syntax
> csh > setenv DBUS_SESSION_BUS_ADDRESS
> 'unix:abstract=/tmp/dbus-mcynDScyts,guid=5ff550ed59db81f96327200045acff2e';
In that session, could you list the names the bus thinks are
activatable, like this?
dbus-send --session --dest=org.freedesktop.DBus --type=method_call \
--print-reply=1 /org/freedesktop/DBus \
org.freedesktop.DBus.ListActivatableNames
(This is just a test of the .service file - no Python code should
actually get run at this point.)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: OpenPGP key: http://www.pseudorandom.co.uk/2003/contact/ or pgp.net
iD8DBQFFrROEWSc8zVUw7HYRAoC5AJ4npSSYM0hUto2qodmocbKrHrmd9wCfZRsh
WPyQB0wAdt7kUe2mBAjnU9Q=
=AakL
-----END PGP SIGNATURE-----
More information about the dbus
mailing list