From cc83aee40153b59a4a691a575a1841e259713970 Mon Sep 17 00:00:00 2001 From: Siegfried-Angel Gevatter Pujals Date: Sun, 9 Aug 2009 19:00:00 +0200 Subject: [PATCH] Show "Network" item on Ubuntu If gnome-network-scheme.desktop can't be found, look for network-scheme.desktop (which is used, for example, on Ubuntu). --- js/ui/places.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/ui/places.js b/js/ui/places.js index dc6400c00..d9bdf6808 100644 --- a/js/ui/places.js +++ b/js/ui/places.js @@ -69,7 +69,11 @@ Places.prototype = { try { networkApp = Shell.AppSystem.get_default().load_from_desktop_file('gnome-network-scheme.desktop'); } catch(e) { - log("Cannot create \"Network\" item: " + e); + try { + networkApp = Shell.AppSystem.get_default().load_from_desktop_file('network-scheme.desktop'); + } catch(e) { + log("Cannot create \"Network\" item, .desktop file not found or corrupt."); + } } if (networkApp != null) {