mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Display (Linux): don't display (null)
This commit is contained in:
@@ -66,7 +66,13 @@ const char* ffdsConnectWlroots(FFDisplayServerResult* result)
|
||||
|
||||
FF_STRBUF_AUTO_DESTROY displayName = ffStrbufCreate();
|
||||
if (!ffdsMatchDrmConnector(connName, &displayName))
|
||||
ffStrbufSetS(&displayName, yyjson_get_str(yyjson_obj_get(device, "description")));
|
||||
{
|
||||
const char* desc = yyjson_get_str(yyjson_obj_get(device, "description"));
|
||||
if (ffStrContains(desc, "(null)"))
|
||||
ffStrbufSetS(&displayName, connName);
|
||||
else
|
||||
ffStrbufSetS(&displayName, desc);
|
||||
}
|
||||
uint32_t rotation = 0;
|
||||
const char* transform = yyjson_get_str(yyjson_obj_get(device, "transform"));
|
||||
if (!ffStrEquals(transform, "normal"))
|
||||
|
||||
Reference in New Issue
Block a user