Microsoft/vscode

VSCode requests bluetooth access on startup

Open

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

在 GitHub 查看
 (18 评论) (1 反应) (1 负责人)TypeScript (10,221 fork)batch import
bugelectrongood first issuelinuxupstream

仓库指标

Star
 (74,848 star)
PR 合并指标
 (平均合并 11小时 43分钟) (30 天内合并 1,000 个 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.

贡献者指南