I got error of

Rejected send message, 2 matched rules; type="method_call", sender=":1.137" (uid=1000 pid=14325 comm="client/iwctl") interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" error name="(unset)" requested_reply="0" destination="net.connman.iwd" (uid=0 pid=354 comm="/usr/lib/iwd/iwd")
in execution of iwctl without sudo. But when I tried to search that, It has low information in google but I solve the issue as executing with sudo. So this is very small change but this will improve this software.



ps. I get issue in linux kernel 5.16 and later, including 5.17.x





---
 client/dbus-proxy.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/client/dbus-proxy.c b/client/dbus-proxy.c
index 0373a3df..8cad3ece 100644
--- a/client/dbus-proxy.c
+++ b/client/dbus-proxy.c
@@ -722,6 +722,7 @@ static void get_managed_objects_callback(struct l_dbus_message *message,
     if (dbus_message_has_error(message)) {
         display_error("Failed to retrieve IWD dbus objects, "
                             "quitting...\n");
+        display("Execute iwctl with root permission is the one way to solve this issue.\n");
 
         goto error;
     }
--
2.35.1