View Single Post
Old 04-29-2011, 11:22 PM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,384
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The point is not to determine if a network interface is up, the point is to determine if the user has enabled his internet connection. And this is so that the news scheduler can suspend itself until the user re-enables the network connection. Otherwise scheduled downloads will fail and the scheduler will give up on them for the day.

If you dont want to use networkmanager, simply disable/uninstall it, then calibre will not use it to check for anything.

And I have no idea what you believe the code you've posted will accomplish? It will work even if only the loopback interface is up.
kovidgoyal is offline   Reply With Quote