diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2014-10-30 15:45:43 +0100 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2014-11-07 11:21:35 +0100 |
commit | 0d9c9208026a8c5c14b657bceb477931fd35375d (patch) | |
tree | 084650b6126059806a8a4c76bc2b8ee94cbf2f17 /clients/cli/devices.c | |
parent | 9e6e6344cb114c5d79eae52594547112d6f800e9 (diff) | |
download | NetworkManager-jk/nmcli-agent-command.tar.gz |
cli: add 'nmcli agent' commandjk/nmcli-agent-command
Synopsis:
nmcli agent { secret | polkit | all }
The command runs separate NetworkManager secret agent or session polkit agent, or both.
It is useful when
- no other secret agent is available (such as GUI nm-applet, gnome-shell, KDE applet)
- no other polkit agent is available (such as polkit-gnome-authentication-agent-1,
polkit-kde-authentication-agent-1 or lxpolkit)
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 */ |