You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,12 @@ Opening Bluetooth preference pane always turns on discoverability if bluetooth p
10
10
11
11
## Alternative Method
12
12
13
-
By default, `blueutil` uses IOBluetooth framework APIs to query paired devices. As an alternative, you can use the `--use-system-profiler` option or set the `BLUEUTIL_USE_SYSTEM_PROFILER=1` environment variable to use the `system_profiler` command instead.
13
+
By default, `blueutil` uses IOBluetooth framework APIs to query paired devices. As an alternative, you can set the `BLUEUTIL_USE_SYSTEM_PROFILER=1` environment variable to use the `system_profiler` command instead.
14
14
15
15
The system_profiler method resolves an issue where some multi-point Bluetooth devices (devices that can connect to multiple devices simultaneously) may not report their connection status correctly through the IOBluetooth APIs, but do show the correct status via system_profiler.
16
16
17
+
**Note:** The system_profiler method is experimental and may have compatibility issues with some blueutil commands.
18
+
17
19
## Usage
18
20
19
21
<!--USAGE[-->
@@ -48,7 +50,6 @@ Without options outputs current state
48
50
49
51
--format FORMAT change output format of info and all listing commands
50
52
51
-
--use-system-profiler use system_profiler instead of IOBluetooth API for paired device queries
52
53
53
54
--wait-connect ID [TIMEOUT]
54
55
EXPERIMENTAL wait for device to connect
@@ -77,7 +78,7 @@ Due to possible problems, blueutil will refuse to run as root user (see https://
77
78
Use environment variable BLUEUTIL_ALLOW_ROOT=1 to override (sudo BLUEUTIL_ALLOW_ROOT=1 blueutil …).
78
79
79
80
Environment variables:
80
-
BLUEUTIL_USE_SYSTEM_PROFILER=1 use system_profiler instead of IOBluetooth API (same as --use-system-profiler)
81
+
BLUEUTIL_USE_SYSTEM_PROFILER=1 EXPERIMENTAL: use system_profiler instead of IOBluetoothDevice API for paired device queries
81
82
82
83
Exit codes:
83
84
0 Success
@@ -98,9 +99,14 @@ List paired devices using IOBluetooth API (default):
98
99
blueutil --paired
99
100
```
100
101
101
-
List paired devices using system_profiler:
102
+
Use system_profiler for a single command:
103
+
```sh
104
+
BLUEUTIL_USE_SYSTEM_PROFILER=1 blueutil --paired
105
+
```
106
+
107
+
Use system_profiler outside of shell (e.g., in scripts):
0 commit comments