Re: Programmatically adding a wireless connection to network manager configuration?
- From: Pavel Simerda <psimerda redhat com>
- To: Daniel McCue <dmccue128 gmail com>
- Cc: networkmanager-list gnome org
- Subject: Re: Programmatically adding a wireless connection to network manager configuration?
- Date: Mon, 18 Jun 2012 06:47:06 -0400 (EDT)
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" <dmccue128 gmail com>
> To: "Pavel Simerda" <psimerda redhat com>
> Cc: networkmanager-list gnome org
> 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 < psimerda redhat com
> > 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.
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]