Proxy Call Error
Daniel Morales
daniel at daniel.com.uy
Thu Aug 21 08:28:26 PDT 2008
Hi, thanks both for the quick answers.
I think the problem is the difference between 'system-services' and
'services'.
The service i wrote doesn't points to be a 'system' one, so as many
others programs i install the .services file in
'$(datadir)/dbus-1/services' => /usr/share/dbus-1/services/.
If i grep 'User=' /usr/share/dbus-1/services/* none of them uses 'User='.
Is any difference about to write a 'system-' and just a 'service'?
Basically what i'm doing to start the service is:
dbus_g_bus_get()
dbus_g_proxy_new_for_name ()
dbus_g_proxy_call () // The "RequestName"
dbus_g_connection_register_g_object ()
Maybe i'm just missing something, but using a inspector shows me that
the methods are 'there'. Also, if i use dbus-send shows me the same
error, so definitly the error comes from the service and not from the
client.
Any other idea?
Thanks much
--
Daniel
Havoc Pennington wrote:
> Hi,
>
> On Wed, Aug 20, 2008 at 5:54 PM, Daniel Morales <daniel at daniel.com.uy> wrote:
>
>> DBus error: org.freedesktop.DBus.Error.Spawn.FileInvalid: Cannot do
>> system-bus activation with no user
>>
>>
>
> Reading dbus/bus/activation.c in the source, it looks like this means
> there is no user field in the .service file. The system bus doesn't
> know which user to run the service as.
>
> For some examples:
> grep 'User=' /usr/share/dbus-1/system-services/*
>
> Havoc
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.freedesktop.org/archives/dbus/attachments/20080821/e27c89bf/attachment.pgp
More information about the dbus
mailing list