-
Notifications
You must be signed in to change notification settings - Fork 27.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VSCode requests bluetooth access on startup #134461
Comments
Yes the connection with bluez service is performed by the runtime https://github.com/electron/electron/blob/22ae945311a96080b83566f40c8576b700ee339a/shell/browser/electron_browser_main_parts.cc#L482-L484, it is good to make this configurable. |
@deepak1556 if you can provide me some direction then I can try it as my first issue. |
@deepak1556 , is this issue fixed as I am not able to reproduce it . |
@raghavthind2005 The issue is still present. I don't know much about Electron so I can't really help. |
I experience the same issue, same OS. |
can't we just remove this from the code? I don't see the reason why it's there in the first place |
@alirezaalavi87 That code is upstream, is there a way to configure it from within vscode's code, or should I open an issue in electron's repo? @deepak1556 |
Can't seem to reproduce this on my system (Pop Os 22.04) is this still a valid issue. Would love to dig deeper and fix if so cc: @zjeffer @deepak1556 |
@MananTaneja Looks like this is still happening on my system. Arch |
Yes, it is still an issue as of 2023-01-07 on ArchLinux with the following:
I have done the following to disable bluetooth, which is probably why it's showing this error for some and not others: WARNING!! This command will disable and prevent bluetooth from loading!
systemctl --user mask bluetooth.target
systemctl --user mask blueman-manager.service
systemctl --user mask blueman-applet.service However, given it's an upstream issue, figuring out why Electron wants bluetooth might be a good question to ask. |
it may be due to an extension that requires Bluetooth permissions
or
it may be related to the Electron framework that powers VSCode. Electron is a platform used to build cross-platform desktop applications, including VSCode. The request for Bluetooth access might be coming from Electron itself or from a dependency used by Electron. @joshuataylor |
Tested on code-insiders version
|
If you are experiencing the issue of VSCode requesting Bluetooth access on startup even after disabling all extensions and trying with a new profile, it's possible that this behavior is caused by a bug in the specific version of VSCode you are using. And now a new version of vs code is available 1.80.1 from june 2023 To remove cache files of Visual Studio Code and uninstall the application, follow these steps: Clear VS Code Cache: Close Visual Studio Code if it's currently running. Look for a folder named Cache and delete it. Uninstall VS Code:
Open the Control Panel. - On macOS: Drag the "Visual Studio Code" application from the Applications folder to the Trash.
The method to uninstall VS Code depends on how it was installed. Please note that uninstalling Visual Studio Code will remove all your settings, preferences, and extensions. If you plan to reinstall VS Code later, you may want to back up any important settings or configurations before uninstalling. |
The same behaviour happens with 1.80. I also tried it on a clean ubuntu VM and the same issue occured, so it isn't related to my extensions, settings or cache. Even happens on the snap version of code (tested on Ubuntu 23.04, version 1.80) |
Environments
How it happenedI had a link on my site that I was testing, which leads to a Google Drive folder. When I clicked on it, it redirected me to the Google login page. That's when I received the 'Would like to use Bluetooth' message. |
Does this issue occur when all extensions are disabled?: Yes
5.14.9-arch2-1
Steps to Reproduce:
sudo systemctl disable bluetooth.service
,sudo systemctl stop bluetooth.service
journalctl -f
to see the output: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.
The text was updated successfully, but these errors were encountered: