Comment 3 for bug 445326

Revision history for this message
Martin Pitt (pitti) wrote : Re: BT applet visible even without any adapter being present

Some discussion with Alexander showed that this probably wasn't a 2.8.1 regression, but was triggered with fixing the /dev/rfkill permissions. Now g-b displays the applet if the number of adapters is greater than 0 (should be false here), OR a killswitch is present.

This logic seems slightly broken to me. If I do not have any adapter, there is no reason to display it, ever. So at most it seems to me that the "|| killswitch" should be just dropped.

However, perhaps the intent was to do "num_adapters > 0 && killswitch->state == off"? (pseudocode). It does make sense to not display the icon while BT is disabled through the switch.