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).
This commit is contained in:
Siegfried-Angel Gevatter Pujals 2009-08-09 19:00:00 +02:00
parent 185ccecec1
commit cc83aee401

View File

@ -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) {