linux: keep bluetooth classic only

This commit is contained in:
kidfromjupiter
2026-01-05 10:36:36 +05:30
parent e2256ca83d
commit 589e638b13
96 changed files with 394 additions and 9771 deletions
@@ -24,7 +24,6 @@
#include "absl/synchronization/mutex.h"
#include "internal/platform/implementation/device_info.h"
#include "internal/platform/implementation/linux/avahi.h"
#include "internal/platform/implementation/linux/dbus.h"
#include "internal/platform/implementation/linux/device_info.h"
#include "internal/platform/logging.h"
@@ -64,11 +63,11 @@ DeviceInfo::DeviceInfo(std::shared_ptr<sdbus::IConnection> system_bus)
login_manager_(std::make_unique<LoginManager>(*system_bus_)) {}
std::optional<std::string> DeviceInfo::GetOsDeviceName() const {
avahi::Server avahi(*system_bus_);
Hostnamed hostnamed(*system_bus_);
try {
return avahi.GetHostNameFqdn();
return hostnamed.Hostname();
} catch (const sdbus::Error &e) {
DBUS_LOG_PROPERTY_GET_ERROR(&avahi, "GetHostNameFqdn", e);
DBUS_LOG_PROPERTY_GET_ERROR(&hostnamed, "Hostname", e);
return std::nullopt;
}
}