Do

Add network connection info to Do.Platform

Bug #324484 reported by Chris Halse Rogers
6
Affects Status Importance Assigned to Milestone
Do
Fix Released
Low
Chris S.

Bug Description

As my laptop is pretty frequently not connected to a network, it's a bit annoying to watch Do's logs fill up with the many failed connections the various internet-connecting plugins attempt. All platforms should have some way of determining whether a network is available, so we should have some sort of network-status available in Do.Platform, with a NetworkManager implementation in Do.Platform.Linux so plugins can check whether a network is available before doing network stuff.

Related branches

Changed in do:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Peng Deng (d6g) wrote :

I recently have had another idea and it seems related so I put it here: maybe the Universe Manager can be aware of the Internet status. When there is not Internet, it won't update any item source which will involve Internet access; This requires the item source to have extra property telling UM if they needs Internet access during updating. Regarding how UM can know about the network status, maybe the system-wide NetworkManager can provide some information over DBus?

Revision history for this message
Chris S. (cszikszoy) wrote :

I'll work on providing a patch for this. I recently dove head first into the rabbit-hole that is NM's dbus interface, and I can provide an easy way for detecting network connection status.

Changed in do:
milestone: none → 0.8.2
Chris S. (cszikszoy)
Changed in do:
assignee: nobody → Chris S. (cszikszoy)
Chris S. (cszikszoy)
Changed in do:
status: Confirmed → In Progress
Jason Smith (jassmith)
Changed in do:
status: In Progress → Fix Committed
Changed in do:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.