On 5 May 2010 10:53, Jirka Klimes <[email protected]> wrote: > On Thursday 06 of May 2010 07:39:07 Nguyen Canh Toan wrote: > > Hi all, > > > > > > > > Currently, I have a purpose of programmatically add & remove connection > > configuration through DBus interface > > org.freedesktop.NetworkManagerSettings.Connection. > > > > I found an API Delete() on > > org.freedesktop.NetworkManagerSettings.Connection but I can't find what > > function stuff to create new connection. > > > > > > > > Did anyone experience with this issue? Could you please to share it to > me? > > > > > > > > Thanks, > > > > Toan Nguyen > > You search for AddConnection() method of > org.freedesktop.NetworkManagerSettings interface. > > For a simple python example see: > > http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/examples/python/add- > system-connection.py<http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/examples/python/add-%0Asystem-connection.py> > > More complex example can be found here: > http://markmail.org/message/2xfwvjqjovu4fk2j > > For specification of settings parameters > see: > http://projects.gnome.org/NetworkManager/developers/settings-spec-08.html >
Wow, I didn't know about this one, thought that gconf was the only was to edit the connection. When was this added? -- Pablo Martí http://minimoesfuerzo.org python -c "print '706d617267616d40676d61696c2e636f6d'.decode('hex')"
_______________________________________________ networkmanager-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/networkmanager-list
