Force device_info to return DESKTOP on FNL
diff --git a/services/device_info/device_info.cc b/services/device_info/device_info.cc index 0dfdfbc..1877e58 100644 --- a/services/device_info/device_info.cc +++ b/services/device_info/device_info.cc
@@ -25,8 +25,12 @@ // We look for the 'DISPLAY' environment variable. If present, then we assume // it to be a desktop, else we assume it to be a commandline void GetDeviceType(const GetDeviceTypeCallback& callback) override { +#if defined(FNL_MUSL) + callback.Run(DeviceInfo::DeviceType::DESKTOP); +#else callback.Run(getenv("DISPLAY") ? DeviceInfo::DeviceType::DESKTOP : DeviceInfo::DeviceType::HEADLESS); +#endif } // |ApplicationDelegate| override.