dbus-send --system --print-reply --dest=org.freedesktop.NetworkManager
/org/freedesktop/NetworkManager org.freedesktop.DBus.Properties.Get
string:"org.freedesktop.NetworkManager" string:"WirelessEnabled"

will get you the info if wireless is on or off ... (just translate it
into whatever language your app uses)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1437135

Title:
  Push-client should be disabled when in flight-mode (no network
  connection)

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1437135/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to