@charlemagne86 The patch in #13 is for an older version of indicator-bluetooth, the latest code is quite different so the patch will not work.
I have been looking in the code and the newly added 'supported' option would work and thought I would update the ticket to show that it is possible with simple changes.
However this uncovers a bug whereby turning bluetooth on/off from indicator or settings works only once then fails on further attempts and stays off with only a restart of the bluetooth service fixing the issue.
The requirement that hiding the indicator when no adaptor is physically available is also possible but need to do a bit more testing as the above issue confused things.
@charlemagne86 The patch in #13 is for an older version of indicator- bluetooth, the latest code is quite different so the patch will not work.
I have been looking in the code and the newly added 'supported' option would work and thought I would update the ticket to show that it is possible with simple changes.
=== modified file 'src/bluez.vala' adapter_ changed (string? object_path)
void on_default_
{
clear_adapter ();
+ supported = object_path != null;
=== modified file 'src/desktop.vala' get_boolean( "visible" ); supported) && settings. get_boolean( "visible" );
- visible = bluetooth.enabled && settings.
+ visible = (bluetooth.enabled || bluetooth.
However this uncovers a bug whereby turning bluetooth on/off from indicator or settings works only once then fails on further attempts and stays off with only a restart of the bluetooth service fixing the issue.
The requirement that hiding the indicator when no adaptor is physically available is also possible but need to do a bit more testing as the above issue confused things.