Skip to content

Commit

Permalink
Disable Bluetooth support
Browse files Browse the repository at this point in the history
The integrated browser is not supposed to be a fully featured web
browser, but rather provide support for modern web standards that can
be integrated neatly into an overlay or the UI via a panel.

WebBluetooth requires additional system permissions (especially on
macOS) and can potentially cause OBS to crash if those permissions are
denied. That's not ideal either.
  • Loading branch information
WizardCM committed Aug 5, 2023
1 parent 7fe8b0b commit 5c59ae9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions browser-app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,12 @@ void BrowserApp::OnBeforeCommandLineProcessing(
std::string disableFeatures =
command_line->GetSwitchValue("disable-features");
disableFeatures += ",HardwareMediaKeyHandling";
disableFeatures += ",WebBluetooth";
command_line->AppendSwitchWithValue("disable-features",
disableFeatures);
} else {
command_line->AppendSwitchWithValue("disable-features",
"WebBluetooth,"
"HardwareMediaKeyHandling");
}

Expand Down

0 comments on commit 5c59ae9

Please sign in to comment.