Microsoft/vscode

VSCode requests bluetooth access on startup

Open

#134,461 opened on Oct 5, 2021

View on GitHub
 (18 comments) (1 reaction) (1 assignee)TypeScript (10,221 forks)batch import
bugelectrongood first issuelinuxupstream

Repository metrics

Stars
 (74,848 stars)
PR merge metrics
 (Avg merge 11h 43m) (1,000 merged PRs in 30d)

Description

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. Disable and stop bluetooth.service: sudo systemctl disable bluetooth.service, sudo systemctl stop bluetooth.service
  2. Open Visual Studio Code
  3. Watch journalctl -f to see the output:
Oct 05 20:24:00 zjeffer dbus-daemon[497]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested by ':1.235' (uid=1000 pid=1745936 comm="/opt/visual-studio-code/code --disable-extensions ")
Oct 05 20:24:00 zjeffer dbus-daemon[497]: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Unit dbus-org.bluez.service not found.

As you can see, after opening visual studio code, it requests access to the bluez service. This seems unnecessary, I guess it's Electron's doing it by default.

This is the same issue as #59162, but the OP closed it because it was fixed for him (in 2019). The issue seems to have reappeared.

Contributor guide