Re: Call AddConnection DBus



Dear,

     Thanks Jirka.

I found that I miss TYPE in NMSettingConnection struct.

It must be included wired/wifi/gsm NMSettingConnection struct etc...

So, it is not work. Thanks your great help.

 

And Now I can set static/DHCP wired & static/DHCP GSM by DBUS.
I will study wifi static/dhcp/secret continue.

 

Thanks everyone.

blue

2010/10/1 Jirka Klimes <jklimes redhat com>
On Wednesday 29 of September 2010 05:22:38 rain blue wrote:
> Dear,
>        Thanks Dan reply. But it has a little problem.
> I use add-system-setting.py. It works & create
> /etc/NetworkManager/system-connections/*
> ( But dbus-monitor can't see any message about AddConnection or GetSettings
> [ d-feet send & dbus-send same ] )
> Is it normally?
> My Networkmanager 0.8 version.

It is intentional that D-Bus protects messages using policies and shows only
signals on system bus by default. You can monitor all messages when you tweak
the policy files. See e.g. this tutorial:
https://wiki.kubuntu.org/DebuggingDBus

> BTW, i try to combine test-keyfile.c & AddConnection DBUS.
> But it also can't work. I modify this source simplification.
>

I've modified Dan's example a bit and created a running  example file in the
repository (see build command inside the file):
http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/examples/C/add-
connection-glib.c


Jirka



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]