gnome-shell/js/ui/status
Florian Müllner 8c57eab5e6 status/bluetooth: Only show when rfkill is available
We currently show the bluetooth toggle when Bluetooth can be
toggled via rfkill, or when there is a powered adapter.

While the latter condition is obvious - if there is a working
Bluetooth adapter, then Bluetooth is available - it does impose
a problem: We rely on rfkill for turning Bluetooth off, so if
rfkill is missing, the toggle is stuck.

We could handle that case and power off the adapter ourselves
when necessary, but then the toggle would just disappear when
turned off.

Instead, only show the toggle when rfkill is available, so we
can assume that turning Bluetooth on and off will work.

This is also consistent with Settings, which shows Bluetooth
as unavailable in this case.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2815>
2023-09-01 11:37:04 +00:00
..
accessibility.js cleanup: Use consistent 4-space indent 2023-08-09 15:10:37 +00:00
autoRotate.js js: Port to modules 2023-08-06 13:02:49 +02:00
backgroundApps.js status/backgroundApps: Close after activating app 2023-08-11 10:27:49 +00:00
backlight.js js: Port to modules 2023-08-06 13:02:49 +02:00
bluetooth.js status/bluetooth: Only show when rfkill is available 2023-09-01 11:37:04 +00:00
brightness.js js: Port to modules 2023-08-06 13:02:49 +02:00
camera.js js: Port to modules 2023-08-06 13:02:49 +02:00
darkMode.js js: Port to modules 2023-08-06 13:02:49 +02:00
dwellClick.js cleanup: Use type-safe comparisons 2023-08-09 15:10:38 +00:00
keyboard.js cleanup: Use type-safe comparisons 2023-08-09 15:10:38 +00:00
location.js cleanup: Use type-safe comparisons 2023-08-09 15:10:38 +00:00
network.js status/network: Don't show OWE networks as secure 2023-08-31 11:54:51 +00:00
nightLight.js js: Port to modules 2023-08-06 13:02:49 +02:00
powerProfiles.js js: Port to modules 2023-08-06 13:02:49 +02:00
remoteAccess.js cleanup: Remove spaces in object literals 2023-08-09 15:10:37 +00:00
rfkill.js js: Port to modules 2023-08-06 13:02:49 +02:00
system.js js: Port to modules 2023-08-06 13:02:49 +02:00
thunderbolt.js cleanup: Use consistent 4-space indent 2023-08-09 15:10:37 +00:00
volume.js cleanup: Use type-safe comparisons 2023-08-09 15:10:38 +00:00