From d5d935a65834939c91a1d52ba952a58aa184d1ad Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sun, 6 Oct 2024 12:27:49 +0800 Subject: [PATCH 1/2] DisplayServer (Linux): fix invalid display name detection --- src/detection/displayserver/linux/wayland/wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/displayserver/linux/wayland/wayland.c b/src/detection/displayserver/linux/wayland/wayland.c index 5a67f7887..457b334ee 100644 --- a/src/detection/displayserver/linux/wayland/wayland.c +++ b/src/detection/displayserver/linux/wayland/wayland.c @@ -109,7 +109,7 @@ static bool matchDrmConnector(const char* connName, WaylandDisplay* wldata) uint8_t edidData[512]; ssize_t edidLength = ffReadFileData(path.chars, sizeof(edidData), edidData); - if (edidLength <= 0 || edidLength % 128 != 0) + if (edidLength > 0 && edidLength % 128 == 0) { ffEdidGetName(edidData, &wldata->edidName); ffEdidGetHdrCompatible(edidData, (uint32_t) edidLength); From bb94ac783277eddd9a3e9ded6c39b56b789797a8 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sun, 6 Oct 2024 12:31:47 +0800 Subject: [PATCH 2/2] Release: v2.27.1 --- CHANGELOG.md | 5 +++++ CMakeLists.txt | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3614d0370..1388995f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 2.27.1 + +Bugfixes: +* Fix invalid display name detection on GNOME, wayland (Display, Linux) + # 2.27.0 Changes: diff --git a/CMakeLists.txt b/CMakeLists.txt index 065c24159..b30be6d45 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs & project homepage url project(fastfetch - VERSION 2.27.0 + VERSION 2.27.1 LANGUAGES C DESCRIPTION "Fast neofetch-like system information tool" HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch" @@ -1614,4 +1614,4 @@ fastfetch is a neofetch-like tool for fetching system information and displaying It is written mostly in C to achieve much better performance.\ ") -include(CPack) \ No newline at end of file +include(CPack)