[gnome-shell] Show "Network" item on Ubuntu
- From: Siegfried-Angel Gevatter Pujals <sgevatter src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] Show "Network" item on Ubuntu
- Date: Sun, 9 Aug 2009 17:03:59 +0000 (UTC)
commit cc83aee40153b59a4a691a575a1841e259713970
Author: Siegfried-Angel Gevatter Pujals <rainct ubuntu com>
Date: Sun Aug 9 19:00:00 2009 +0200
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 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/places.js b/js/ui/places.js
index dc6400c..d9bdf68 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]