For PackageKit we don't want to be refreshing caches or checking for updates when there is no network connection. Does anyone have a short guide on how to monitor and query the connected state of nm (session or system), just like evolution does? Any nm guys want to write me a quick patch or jot down some quick code? Cheers.
EDIT: Done, thanks guys.
Published by
hughsie
Richard has over 10 years of experience developing open source software. He is the maintainer of GNOME Software, PackageKit, GNOME Packagekit, GNOME Power Manager, GNOME Color Manager, colord, and UPower and also contributes to many other projects and opensource standards. Richard has three main areas of interest on the free desktop, color management, package management, and power management.
Richard graduated a few years ago from the University of Surrey with a Masters in Electronics Engineering. He now works for Red Hat in the desktop group, and also manages a company selling open source calibration equipment. Richard's outside interests include taking photos and eating good food.
View all posts by hughsie
Look at libnm and libnm_glib – you'll have it done in half an hour, tops