|
@@ -81,6 +81,7 @@
|
|
|
#include "base/environment.h"
|
|
|
#include "chrome/browser/ui/views/dark_mode_manager_linux.h"
|
|
|
#include "device/bluetooth/bluetooth_adapter_factory.h"
|
|
|
+#include "device/bluetooth/dbus/bluez_dbus_manager.h"
|
|
|
#include "device/bluetooth/dbus/dbus_bluez_manager_wrapper_linux.h"
|
|
|
#include "electron/electron_gtk_stubs.h"
|
|
|
#include "ui/base/cursor/cursor_factory.h"
|
|
@@ -508,7 +509,8 @@ void ElectronBrowserMainParts::PostCreateMainMessageLoop() {
|
|
|
ui::OzonePlatform::GetInstance()->PostCreateMainMessageLoop(
|
|
|
std::move(shutdown_cb),
|
|
|
content::GetUIThreadTaskRunner({content::BrowserTaskType::kUserInput}));
|
|
|
- bluez::DBusBluezManagerWrapperLinux::Initialize();
|
|
|
+ if (!bluez::BluezDBusManager::IsInitialized())
|
|
|
+ bluez::DBusBluezManagerWrapperLinux::Initialize();
|
|
|
|
|
|
// Set up crypt config. This needs to be done before anything starts the
|
|
|
// network service, as the raw encryption key needs to be shared with the
|