Re: If wireless security information is not provided to the plug-in, will the default plug-in handle it?



On Thu, 2010-04-08 at 17:15 +0800, Mu Qiao wrote:
> On Thu, Apr 8, 2010 at 4:49 PM, Simon Geard <delgarde ihug co nz> wrote:
> > On Thu, 2010-04-08 at 16:38 +0800, Mu Qiao wrote:
> >> One more thing. I find that NetworkManager uses gnome keyring to store
> >> keys. But I didn't find any code doing that. Could you please give me
> >> some directions?
> >
> > NetworkManager doesn't use the gnome keyring itself - the Gnome
> > network-manager-applet does.
> >
> > Simon.
> >
> > _______________________________________________
> > networkmanager-list mailing list
> > networkmanager-list gnome org
> > http://mail.gnome.org/mailman/listinfo/networkmanager-list
> >
> >
> 
> Thanks, great help.
> No wonder I just find keyring code in nm-applet. :)
> Can I say the plug-in should not worry about security information
> since nm-applet will handle it?

You still need to worry about security information for your plugin if
you're doing a full implementation.  The applet stores /user/ settings,
which are specific to that user, while your plugin stores system-wide
settings that are available to all uses.

However, as long as your plugin returns an error when it's asked to save
a connection that it doesn't support, and as long as you have the
'keyfile' plugin enabled, then NM falls back to the keyfile plugin.

In /etc/NetworkManager/NetworkManager.conf (or nm-system-settings.conf),
use:

[main]
plugins=<your plugin>,keyfile


to enable that behavior.

Dan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]