According to https://live.gnome.org/NetworkManager/SystemSettings

„It is not necessary to restart NetworkManager or nm-system-settings when 
making these changes, as the configuration files are watched for changes and 
reloaded when necessary.“

But I haven't tested it myself. But first look at the examples Thomas suggested.

Pavel

----- Original Message -----
> From: "Daniel McCue" <[email protected]>
> To: "Pavel Simerda" <[email protected]>
> Cc: [email protected]
> Sent: Monday, June 18, 2012 12:33:20 PM
> Subject: Re: Programmatically adding a wireless connection to network manager 
> configuration?
> 
> Thanks Pavel. If I create a new configuration keyfile in
> /etc/NetworkManager/system-connections, any idea how long it will
> take NetworkManager to notice or is there something I can do to
> notify it to attempt a connection to the new AP?
> 
> 
> On Mon, Jun 18, 2012 at 5:16 AM, Pavel Simerda < [email protected]
> > wrote:
> 
> 
> > I have an application that acquires wifi connection information
> > from
> > a user including SSID, encryption type (e.g., WPA2 Personal or WPA
> > Enterprise) and password. Is there a way I can programmatically
> > inform Network Manager about this new connection rather than
> > require
> > the user to access the applet from the desktop?
> 
> I'll leave the proper API answer to others (as I think it's not
> supported)... but what you *can* do is to let your app create the
> configuration files (e.g. in the built-in keyfile format) and use
> that.
> 
> 
_______________________________________________
networkmanager-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/networkmanager-list

Reply via email to