Re: Add new conntion with DBus API
- From: Pablo Martí Gamboa <pmarti warp es>
- To: Nguyen Canh Toan <Toannc5 viettel com vn>
- Cc: networkmanager-list gnome org
- Subject: Re: Add new conntion with DBus API
- Date: Wed, 5 May 2010 10:18:05 +0200
On 6 May 2010 07:39, Nguyen Canh Toan
<Toannc5 viettel com vn> 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?
Hi Nguyen,
you'll need to create it via gconf. A connection is represented as a dict of dicts in DBus or a dir of dirs in gconf. As gconf lacks a "create this tree atomically" command, you'll need to set the values one by one. NMSettings will send a NewConnection signal when it decides that the profile is created/ready.
Pablo
_______________________________________________
networkmanager-list mailing list
networkmanager-list gnome org
http://mail.gnome.org/mailman/listinfo/networkmanager-list
--
Pablo Martí
http://minimoesfuerzo.orgpython -c "print
'706d617267616d40676d61696c2e636f6d'.decode('hex')"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]