Connecting to a VPN (vpnc) via DBus

I'd like to write a script for Dispatcher to automatically connect to a VPN when I connect to some specific wlan. I saw some scripts on the internet, but they're not up to date with NM 0.7 api. I saw the org.freedesktop.NetworkManager.VPN.Manager.Connect method, but I'm not sure what to pass as the arguments. I think the first is weither to use session or system bus, the second the name of the connection, the third the device (like wlan0, or its path in NetworkManager/Device ?), and I've no idea about the last.
Has anyone got a clue about this ?


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