Currently, I am trying to control Bluetooth (pairing - connecting - removing ...) with my python code (by accessing to bluetoothctl through pexpect).
It actually works fine but I have a problem with bluetoothctl when I am trying to pair my Bluetooth speaker to raspberry pi. After pairing, a GUI dialog comes up and requests to accept the pairing
The pairing procedure does not finish until you accept this dialog. Is there any way to prevent GUI interaction during Bluetooth pairing?