Microsoft/vscode

VSCode requests bluetooth access on startup

开放

#134,461 创建于 2021年10月5日

 (18 条评论) (2 个反应) (1 位负责人)TypeScript (39,847 个派生)batch import
bugelectrongood first issuelinuxupstream

仓库指标

星标
 (184,936 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南