On Tue, 2008-10-21 at 09:25 +0800, Zhe Su wrote:
> Thanks for your feedback.
>
> On Tue, Oct 21, 2008 at 1:28 AM, Dan Williams <
dcbw redhat com> wrote:
>
> On Sat, 2008-10-18 at 23:47 +0800, Zhe Su wrote:
> > Hi,
> > I'm writing an application which needs to control network
> manager
> > via its dbus service, especially to connect the wifi to a
> specified
> > access point. I'm using openSUSE 11 with network manager
> 0.7. After
> > reading the documentation and source code of network manager
> applet, I
> > found that a connection object must be created for the
> access point
> > before calling network manager to activate the ap. However
> seems that
> > it's only possible to create connection object by using
> functions
> > provided by libnm-{glib,utils}. There is no corresponding
> methods
> > exported through dbus. But I don't want to make my
> application depend
> > on libnm.
> > So I'm wondering if there is any way to achieve my goal
> with nm's
> > dbus service only?
>
>
> Do you expect the applet to be running alongside your program?
> Yes.
>
>
> _Something_ needs to provide the Connection details to
> NetworkManager,
> and right now that's the applet. If you want to replace the
> applet and
> provide your own org.freedesktop.NetworkManagerUserSettings
> service,
> that would work.
> I'm going to use existing settings service instead of providing a new
> one. The problem is, current org.freedesktop.NetworkManagerSettings
> interface doesn't have a method to create a new connection for a
> specific device and access point, which makes it impossible to
> activate the device in my application if there is no connection for
> that device yet. And it might be handy to have a method in
> org.freedesktop.NetworkManager to activate a specific device without
> specifying the connection (a temporary default connection shall be
> created and used by network manager), so that network manager can
> still work in many cases without settings service.