GNOME Bugzilla – Bug 691720
network: support NM 0.9.6 again
Last modified: 2013-01-14 17:10:57 UTC
This is intended as just a temporary kludge to allow people to use unstable gnome-shell without having to build NM from git. So, it doesn't fully restore the original disambiguating-multiple-ethernet-cards functionality. (They'll both show up as just "Wired" now if you have 0.9.6. But at least the network indicator will show up at all...)
Created attachment 233451 [details] [review] network: support NM 0.9.6 again NM 0.9.7 is still not released even as a tarball, so fix this to work with 0.9.6 again for now (although it doesn't do any device name disambiguation in this case now).
Review of attachment 233451 [details] [review]: One minor bit, otherwise seems reasonable to me. ::: js/ui/status/network.js @@ +12,3 @@ +try { + const NMGtk = imports.gi.NMGtk; +} catch(e) {} How about this, which avoids us relying on lookup of an undefined variable: var NMGtk; try { NMGtk = imports.gi.NMGtk; catch (e) { NMGtk = null; }
pushed with suggested fix Attachment 233451 [details] pushed as c37b222 - network: support NM 0.9.6 again