Re: Error when trying to access nm with vala and gdbus
- From: Florent Thévenet <feuloren free fr>
- To: Dan Williams <dcbw redhat com>
- Cc: networkmanager-list gnome org
- Subject: Re: Error when trying to access nm with vala and gdbus
- Date: Fri, 13 Jan 2012 17:56:26 +0100
Le jeudi 12 janvier 2012 à 19:01 -0600, Dan Williams a écrit :
> >
> > conn = Bus.get_proxy_sync(BusType.SYSTEM,
> > "org.freedesktop.NetworkManager.Settings.Connection",
> > "/org/freedesktop/NetworkManager/Settings/15");
>
> Here's the problem: you still need to use the NetworkManager dbus
> service name, which is "org.freedesktop.NetworkManager". What you're
> passing in here looks like the *interface* name you want to use when
> talking to the /org/freedesktop/NetworkManager/Settings/15 object.
>
> So remove the ".Settings.Connection" bit from that and you should get
> your proxy. The interface name is already specified at the top where
> you define the interface for the Connection object.
>
> Dan
Ok I modified it and it works, next time I'll read the documentation
better :-)
Thanks a lot
Florent
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]