Re: Call AddConnection DBus



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]