I spent some time sorting this out as the example does not cover wpa2 wifi. Take a look at thishttps://github.com/vikjon0/qfpynm/blob/master/qfpynm.py best regards, Jonas
Date: Mon, 18 Jun 2012 07:01:45 -0400 Subject: Re: Programmatically adding a wireless connection to network manager configuration? From: dmccue...@gmail.com To: psime...@redhat.com CC: networkmanager-list@gnome.org Thanks. I'll check out the examples and try a few tests. On Mon, Jun 18, 2012 at 6:47 AM, Pavel Simerda <psime...@redhat.com> wrote: 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" <dmccue...@gmail.com> > To: "Pavel Simerda" <psime...@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 < psime...@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. > > _______________________________________________ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
_______________________________________________ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list