This patch is made out of my attempt to start obex-data-server from debian without xdg-user-dirs . It does not work as the glib special directories are nto defined but worst than that : - it did not tell in the log anything went wrong, - it did not close the server when it failed to start it and sharing_enabled and received_enabled where not in sync with the server state anymore because of that. applet was trying to create the server while it was already running leading to socket already in use errors after two attempts. This fixes those issues. Best regards Alban