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 {
|
try {
|
||||||
networkApp = Shell.AppSystem.get_default().load_from_desktop_file('gnome-network-scheme.desktop');
|
networkApp = Shell.AppSystem.get_default().load_from_desktop_file('gnome-network-scheme.desktop');
|
||||||
} catch(e) {
|
} 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) {
|
if (networkApp != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user