Am 12.01.2014 17:47, schrieb Michael Biebl: > In summary, the patch is not quite ready yet imho.
Hm, looking more closely, instead of moving the files around, it might
be better to use a try {} catch {} statement like we do for NM.
Robert, can you try the following patch:
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -930,8 +930,12 @@ const PANEL_ITEM_IMPLEMENTATIONS = {
};
if (Config.HAVE_BLUETOOTH)
- PANEL_ITEM_IMPLEMENTATIONS['bluetooth'] =
- imports.ui.status.bluetooth.Indicator;
+ try {
+ PANEL_ITEM_IMPLEMENTATIONS['bluetooth'] =
+ imports.ui.status.bluetooth.Indicator;
+ } catch(e) {
+ log('Bluetooth is not supported.');
+ }
if (Config.HAVE_NETWORKMANAGER) {
try {
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature

