raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.23k stars 2.92k forks source link

[Toothpick] Disconnecting device #8353

Closed kvzivn closed 1 year ago

kvzivn commented 1 year ago

Extension

https://www.raycast.com/VladCuciureanu/toothpick

Description

Disconnecting my bluetooth speaker doesn't work.

Steps To Reproduce

Using the Toothpick disconnect device function from either the device management screen or the disconnect command.

Current Behaviour

Says it's disconnnect sucessfully but it's not.

Expected Behaviour

Should properly disconnect the device.

raycastbot commented 1 year ago

Thank you for opening this issue!

🔔 @VladCuciureanu @briankosw you might want to have a look.

💡 Tip: Once the issue is resolved, comment @raycastbot close this issue to close it.

VladCuciureanu commented 1 year ago

Please try installing blueutil via brew and changing the bluetooth backend to blueutil from the extension's settings. This is a feature recently added to bypass exactly this issue.

kvzivn commented 1 year ago

@VladCuciureanu When i'm using blueutil I'm getting the following error when trying to run either "Manage Bluetooth Connections" or "Disconnect Device". I tried restarting Raycast but it didn't help.

TypeError: Cannot read properties of undefined (reading 'getDevices')

Kn:manage-bluetooth-connections.tsx:7:41

---
4: import { Device } from "./core/devices/devices.model";
5: 
6: export default function ManageBluetoothConnectionsView() {
7:   const [loading, setLoading] = useState(true);
8:   const [devices, setDevices] = useState<Device[]>([]);
9: 
0:   const { bluetoothBackend } = getPreferenceValues();
---

Ir:index.js:9:2490
    at ray-navigation-stack
$o:index.js:9:2088
VladCuciureanu commented 1 year ago

Can you give me the result of running 'which blueutil' in terminal?

kvzivn commented 1 year ago

Ah sorry, hadn't installed blueutil. Works now. Thanks for quick replies! Great extension! (btw, a disconnect favorite device command would be nice 😊)

VladCuciureanu commented 1 year ago

Thanks! Glad you like it. I'll look into that 'disconnect favorite device' command. Maybe it will pop up in the next update

VladCuciureanu commented 1 year ago

@raycastbot close this issue