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:
parent
185ccecec1
commit
cc83aee401
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user