From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> There is no use to register an agent when on non-interactive mode. --- client/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/main.c b/client/main.c index 38df75828..962f3383b 100644 --- a/client/main.c +++ b/client/main.c @@ -520,7 +520,8 @@ static void proxy_added(GDBusProxy *proxy, void *user_data) if (!agent_manager) { agent_manager = proxy; - if (auto_register_agent) + if (auto_register_agent && + !bt_shell_get_env("NON_INTERACTIVE")) agent_register(dbus_conn, agent_manager, auto_register_agent); } -- 2.14.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html