diff options
Diffstat (limited to 'clients/cli/devices.c')
-rw-r--r-- | clients/cli/devices.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clients/cli/devices.c b/clients/cli/devices.c index 3d9598fb41..c073ec252b 100644 --- a/clients/cli/devices.c +++ b/clients/cli/devices.c @@ -28,6 +28,7 @@ #include <glib.h> #include <glib/gi18n.h> +#include "polkit-agent.h" #include "utils.h" #include "common.h" #include "devices.h" @@ -2776,6 +2777,9 @@ do_devices (NmCli *nmc, int argc, char **argv) { GError *error = NULL; + /* Register polkit agent */ + nmc_start_polkit_agent_start_try (nmc); + rl_attempted_completion_function = (rl_completion_func_t *) nmcli_device_tab_completion; /* Get NMClient object early */ |