mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-23 16:28:12 +02:00
Previously, we would call the synchronous nm_client_networking_set_enabled() method. There were 3 problems: 1) nmcli ignored the return value, that means, if the request failed with access denied it would just silently pretend that it succeeded. 2) nmcli first called nmc_start_polkit_agent_start_try(), but when invoking the synchronous method, the main context is busy and a polkit request cannot possibly be handled. 3) nm_client_networking_set_enabled() is deprecated. Fix all of these, by calling the D-Bus method directly. Policykit authentication requests are only handled partly. There seems to be an unrelated race/bug. Now it works sometimes. |
||
|---|---|---|
| .. | ||
| agent.c | ||
| agent.h | ||
| common.c | ||
| common.h | ||
| connections.c | ||
| connections.h | ||
| devices.c | ||
| devices.h | ||
| general.c | ||
| general.h | ||
| meson.build | ||
| nmcli-completion | ||
| nmcli.c | ||
| nmcli.h | ||
| polkit-agent.c | ||
| polkit-agent.h | ||
| settings.c | ||
| settings.h | ||
| utils.c | ||
| utils.h | ||