Showing posts with label bluetooth-sendto. Show all posts
Showing posts with label bluetooth-sendto. Show all posts

Tuesday, 12 November 2013

Bluetooth file sharing (ObexPush) in GNOME 3.10

As you might remember, GNOME 3.10 switched to using BlueZ 5.x as its Bluetooth backend.

Switching to BlueZ 5.x meant that the old obex-data-server (which was used in both the gvfs ObexFTP backend, and gnome-user-share) couldn't be used anymore. The previously stand-alone obexd was to be used.

Its API is quite different, and it obviously didn't get much testing apart from its target use case, the single-user phone case.

I fixed a number of bugs this week-end, which should make Obex Push server-side (sending files from your phone to your computer) work as expected.

Distributors' homework

First, distributors will need to do a bit of work for you:
- Ship and apply this (not yet upstreamed) patch if you don't have a systemd-based session, so that obexd can be started via D-Bus.
- And ship this patch to have obexd write to the user's cache dir by default.

With both of those patches to BlueZ and gnome-user-share 3.10.1, you should be golden.

Note that the first patch is also required if you want to send files using bluetooth-sendto.

ObexFTP

You'll notice that we didn't mention ObexFTP yet, but we'll do, one last time. ObexFTP support client side hasn't seen any updates for a couple of years, and the server side support for it in obexd didn't match our expectations (such as the inability to kill existing, already made connections).

So ObexFTP support was never finished porting and re-enabled in gnome-user-share. And given that apart from computers and very few phones, the client side support was lacking, we decided to kill the support for it in gnome-user-share.



TL;DR

ObexPush server support is fixed in gnome-user-share 3.10.1, and ObexFTP server support is gone.

Tuesday, 22 January 2008

2 down, 3 to go

gnome-obex-send is dead, long live bluetooth-sendto.

Tadas' Google Summer Of Code, mentored by Marcel Holtmann, got us a D-Bus service that does ObexPush and ObexFTP server and client. Last week, I cleaned up Tadas' patch, and sent a big patch to allow bluetooth-sendto feature-parity with the old gnome-obex-send.

nautilus-sendto already got tweaked to use the new program when sending over Bluetooth, and all that code lies in bluez-gnome in rawhide.

This morning, I added ObexFTP support to gnome-user-share. It seems like the right place to allow people to share pictures or music. Already in the newly released gnome-user-share 0.20 and in rawhide.




Next jobs on the line are getting rid of gnome-obex-server, finishing the widgets in bluez-gnome, and porting gnome-vfs-obexftp to gio (although that will probably mean a rewrite using obex-data-server again).