* Obex with no X
@ 2009-07-29 12:42 Rafael Seste
2009-07-29 14:33 ` Rafael Seste
2009-07-29 17:46 ` Luiz Augusto von Dentz
0 siblings, 2 replies; 4+ messages in thread
From: Rafael Seste @ 2009-07-29 12:42 UTC (permalink / raw)
To: linux-bluetooth
Hi all,
I'm trying to use obex to retrieve the contacts from my mobile using PBAP.
In the test folder I'm only able to run obex-test and it retrieves all
contacts from my mobile. But I would like to use the python scripts
and they aren't working.
I'm running it with bluez 4.42 and kernel 2.6.30 without the X
installed, I installed libopenobex from ubuntu repo.
When I ran pbab-client the output was:
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.Spawn.ExecFailed: dbus-launch failed to
autolaunch D-Bus session: Autolaunch error: X11 initialization failed.
Googling I found that SeesionDbus() need the X installed. So I
changed to SystemDbus(). I don't know if this is right.
After the output was:
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.Spawn.FileInvalid: Cannot do system-bus
activation with no user
So I added to the file /usr/share/dbus-1/system-services/obex-client.service
"User=root"
and the error changed again
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.Spawn.FailedToSetup: Failed to setup
environment correctly
Is it possible to run obex with dbus with the X installed?
If so, what am I doing wrong? or what is missing?
thanks in advance
--
Rafael S. Seste
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Obex with no X
2009-07-29 12:42 Obex with no X Rafael Seste
@ 2009-07-29 14:33 ` Rafael Seste
2009-07-29 17:46 ` Luiz Augusto von Dentz
1 sibling, 0 replies; 4+ messages in thread
From: Rafael Seste @ 2009-07-29 14:33 UTC (permalink / raw)
To: linux-bluetooth
On Wed, Jul 29, 2009 at 9:42 AM, Rafael Seste<rseste@gmail.com> wrote:
> Hi all,
>
> I'm trying to use obex to retrieve the contacts from my mobile using PBAP.
> In the test folder I'm only able to run obex-test and it retrieves all
> contacts from my mobile. But I would like to use the python scripts
> and they aren't working.
> I'm running it with bluez 4.42 and kernel 2.6.30 without the X
> installed, I installed libopenobex from ubuntu repo.
>
> When I ran pbab-client the output was:
>
> dbus.exceptions.DBusException:
> org.freedesktop.DBus.Error.Spawn.ExecFailed: dbus-launch failed to
> autolaunch D-Bus session: Autolaunch error: X11 initialization failed.
>
> Googling I found that SeesionDbus() need the X installed. So I
> changed to SystemDbus(). I don't know if this is right.
> After the output was:
>
> dbus.exceptions.DBusException:
> org.freedesktop.DBus.Error.Spawn.FileInvalid: Cannot do system-bus
> activation with no user
>
> So I added to the file /usr/share/dbus-1/system-services/obex-client.service
> "User=root"
>
> and the error changed again
>
> dbus.exceptions.DBusException:
> org.freedesktop.DBus.Error.Spawn.FailedToSetup: Failed to setup
> environment correctly
>
>
> Is it possible to run obex with dbus with the X installed?
Sorry, I mean __without__ X installed!!!!
> If so, what am I doing wrong? or what is missing?
>
> thanks in advance
>
> --
> Rafael S. Seste
>
--
Rafael S. Seste
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Obex with no X
2009-07-29 12:42 Obex with no X Rafael Seste
2009-07-29 14:33 ` Rafael Seste
@ 2009-07-29 17:46 ` Luiz Augusto von Dentz
2009-07-29 19:28 ` Rafael Seste
1 sibling, 1 reply; 4+ messages in thread
From: Luiz Augusto von Dentz @ 2009-07-29 17:46 UTC (permalink / raw)
To: Rafael Seste; +Cc: linux-bluetooth
Hi,
On Wed, Jul 29, 2009 at 9:42 AM, Rafael Seste<rseste@gmail.com> wrote:
> Hi all,
>
> I'm trying to use obex to retrieve the contacts from my mobile using PBAP.
> In the test folder I'm only able to run obex-test and it retrieves all
> contacts from my mobile. But I would like to use the python scripts
> and they aren't working.
> I'm running it with bluez 4.42 and kernel 2.6.30 without the X
> installed, I installed libopenobex from ubuntu repo.
>
> When I ran pbab-client the output was:
>
> dbus.exceptions.DBusException:
> org.freedesktop.DBus.Error.Spawn.ExecFailed: dbus-launch failed to
> autolaunch D-Bus session: Autolaunch error: X11 initialization failed.
I don't think buses really depend on X, what happen is that normally a
session bus created by login. Please take a look at man page of
dbus-launch the section AUTOMATIC LAUNCHING seems to tell about the
relation of X and --autolaunch.
OTOH it shouldn't be difficult to have obexd on system bus so you
wouldn't have to bother creating an session exclusively for obexd.
Regards,
--
Luiz Augusto von Dentz
Engenheiro de Computação
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Obex with no X
2009-07-29 17:46 ` Luiz Augusto von Dentz
@ 2009-07-29 19:28 ` Rafael Seste
0 siblings, 0 replies; 4+ messages in thread
From: Rafael Seste @ 2009-07-29 19:28 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
On Wed, Jul 29, 2009 at 2:46 PM, Luiz Augusto von
Dentz<luiz.dentz@gmail.com> wrote:
> Hi,
>
> On Wed, Jul 29, 2009 at 9:42 AM, Rafael Seste<rseste@gmail.com> wrote:
>> Hi all,
>>
>> I'm trying to use obex to retrieve the contacts from my mobile using PBAP.
>> In the test folder I'm only able to run obex-test and it retrieves all
>> contacts from my mobile. But I would like to use the python scripts
>> and they aren't working.
>> I'm running it with bluez 4.42 and kernel 2.6.30 without the X
>> installed, I installed libopenobex from ubuntu repo.
>>
>> When I ran pbab-client the output was:
>>
>> dbus.exceptions.DBusException:
>> org.freedesktop.DBus.Error.Spawn.ExecFailed: dbus-launch failed to
>> autolaunch D-Bus session: Autolaunch error: X11 initialization failed.
>
> I don't think buses really depend on X, what happen is that normally a
> session bus created by login. Please take a look at man page of
> dbus-launch the section AUTOMATIC LAUNCHING seems to tell about the
> relation of X and --autolaunch.
I read the man page and found that the environment variable
DBUS_SESSION_BUS_ADDRESS is not exported.
I exported it with the same value from ~/.dbus/session-bus/ but it
still does not work. I got this error
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoServer:
Failed to connect to socket /tmp/dbus-EtKMcBkowv: Connection refused
>
> OTOH it shouldn't be difficult to have obexd on system bus so you
> wouldn't have to bother creating an session exclusively for obexd.
Could you help me with that? I don't know much about dbus.
I changed to system bus and got an error;
Cannot do system-bus activation with no user
>
> Regards,
>
> --
> Luiz Augusto von Dentz
> Engenheiro de Computação
>
Regards,
--
Rafael S. Seste
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-07-29 19:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-29 12:42 Obex with no X Rafael Seste
2009-07-29 14:33 ` Rafael Seste
2009-07-29 17:46 ` Luiz Augusto von Dentz
2009-07-29 19:28 ` Rafael Seste
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox