Here is what i have done to get latest sources of blueman, obex-data-server and 
bluez5 to receive file from a phone as normal user and with zero mouse clicks.
1. add --compat flag to bluetooth.service file in bluez5 sources and run 
configure --help to set systemd directories to /etc/systemd/system:
[Unit]
Description=Bluetooth service
Documentation=man:bluetoothd(8)
Requires=network.target

[Service]
Type=dbus
BusName=org.bluez
ExecStart=/usr/libexec/bluetooth/bluetoothd --compat
Restart=on-failure
RestartSec=5

#NotifyAccess=main
#WatchdogSec=10
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
LimitNPROC=1

[Install]
WantedBy=multi-user.target
Alias=dbus-org.bluez.service

2. edit sdpd-server.c to set more access rights:
chmod(SDP_UNIX_PATH, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | 
S_IWOTH);chmod(SDP_UNIX_PATH, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | 
S_IWOTH);

3. run make install as root and then enable bluez:
systemctl daemon-reload
systemctl enable bluetooth.service
systemctl start bluetooth.service

4.Go to obex-data-server sources and cp obex-data-server.conf 
/etc/dbus-1/system.d/ after make install. You can also use existing packages 
but be sure to copy that file.

5. Now you can use the latest blueman. To disable annoying notification 
confirmation dialog when receiving files, 
remove the following code from /blueman/main/applet/Transfer.py:
'''
        if info["BluetoothAddress"] not in self.allowed_devices and not 
(self.Config["opp-accept"] and trusted):
        ...
        else:
'''
To make pc discoverable automatically, comment out from 
/blueman/apps/blueman-adapters:
adapter_settings['discoverable'] = True #props['Discoverable']
#we use count timeout in minutes
adapter_settings['discoverable_timeout'] = 0  #props['DiscoverableTimeout'] / 60
adapter_settings['changed'] = True    #False

6. Create new file /etc/udev/rules.d/10-local.rules
# Set bluetooth power up
ACTION=="add", KERNEL=="hci0", RUN+="/usr/bin/hciconfig hci0 up"

Now I can send pictures from standard android 4.4 phone to standard Jessie 
64-bit xfce (standard Amd A8-7600 cpu) without clicking anything after reboot. 
Debian developers can do what they want, but it takes year or two and it not 
nice to end users.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to