Skip to content

Commit acf6104

Browse files
authored
Merge pull request #2331 from fastfetch-cli/dev
Release: v2.63.1
2 parents a94df76 + 90d3b3d commit acf6104

7 files changed

Lines changed: 45 additions & 15 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
# 2.63.1
2+
3+
Bugfixes:
4+
* Fixes media length detection for Chrome on Linux (Media, Linux)
5+
* Fixes segmentation fault when specifying unsupported modules on command line
6+
* Disables usage of Netlink for Wi-Fi detection on s390x architectures (Wifi, Linux)
7+
18
# 2.63.0
29

310
Changes:
4-
* Introduces a new optional dependency, `libefl`, for querying the Enlightenment window manager configuration:
11+
* Introduces a new **build-only** dependency, `libefl`, for querying the Enlightenment window manager configuration:
512
* `libefl-all-dev` on Debian/Ubuntu
613
* `libefl-devel` on Fedora
714
* `efl` on Arch Linux
@@ -14,6 +21,7 @@ Features:
1421
* Adds Ubuntu Kylin and Ubuntu Unity flavor detection (OS, Linux)
1522
* Adds NebiDE support (WMTheme, Linux)
1623
* Adds package counting for `cards` on NuTyX (#2287, Packages, Linux)
24+
* Adds `{am-pm}` to custom format for 12-hour time with am/pm (DateTime)
1725
* Adds support for the Enlightenment desktop environment (#2165, WM, Linux)
1826
* Adds support for playback progress detection (Media)
1927
* The module now prints the current playback position and total media duration when supported by the player. If you prefer the previous behavior, you can set `media.percent.type: ["hide-others"]` to hide the new fields.

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs & project homepage url
22

33
project(fastfetch
4-
VERSION 2.63.0
4+
VERSION 2.63.1
55
LANGUAGES C
66
DESCRIPTION "Fast neofetch-like system information tool"
77
HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch"

debian/changelog.tpl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
fastfetch (2.63.0~#UBUNTU_CODENAME#) #UBUNTU_CODENAME#; urgency=medium
2+
3+
* Update to 2.63.0
4+
5+
-- Carter Li <zhangsongcui@live.cn> Wed, 13 May 2026 16:02:28 +0800
6+
7+
fastfetch (2.62.1~#UBUNTU_CODENAME#) #UBUNTU_CODENAME#; urgency=medium
8+
9+
* Update to 2.62.1
10+
11+
-- Carter Li <zhangsongcui@live.cn> Fri, 24 Apr 2026 15:45:15 +0800
12+
113
fastfetch (2.62.0~#UBUNTU_CODENAME#) #UBUNTU_CODENAME#; urgency=medium
214

315
* Update to 2.62.0

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Source: fastfetch
22
Section: universe/utils
33
Priority: optional
44
Maintainer: Carter Li <zhangsongcui@live.cn>
5-
Build-Depends: libelf-dev, libvulkan-dev, libwayland-dev, libxrandr-dev, libxcb-randr0-dev, libdconf-dev, libdbus-1-dev, libmagickcore-dev, libsqlite3-dev, librpm-dev, libegl-dev, libglx-dev, ocl-icd-opencl-dev, libpulse-dev, libdrm-dev, libddcutil-dev, libchafa-dev, pkgconf, cmake (>= 3.12), debhelper (>= 11.2), dh-cmake, dh-cmake-compat (= 1), dh-sequence-cmake, dh-sequence-ctest, ninja-build, python3-setuptools
5+
Build-Depends: libelf-dev, libvulkan-dev, libwayland-dev, libxrandr-dev, libxcb-randr0-dev, libdconf-dev, libdbus-1-dev, libmagickcore-dev, libsqlite3-dev, librpm-dev, libegl-dev, libglx-dev, ocl-icd-opencl-dev, libpulse-dev, libdrm-dev, libddcutil-dev, libchafa-dev, libefl-all-dev, pkgconf, cmake (>= 3.12), debhelper (>= 11.2), dh-cmake, dh-cmake-compat (= 1), dh-sequence-cmake, dh-sequence-ctest, ninja-build, python3-setuptools
66
Standards-Version: 4.0.0
77
Homepage: https://github.com/fastfetch-cli/fastfetch
88

src/common/impl/commandoption.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ static bool parseStructureCommand(
178178
}
179179
}
180180

181-
if (fn == genJsonResult) {
181+
if (data->resultDoc) {
182182
yyjson_mut_doc* doc = data->resultDoc;
183183
yyjson_mut_val* module = yyjson_mut_arr_add_obj(doc, doc->root);
184184
yyjson_mut_obj_add_str(doc, module, "type", line);

src/detection/media/media_linux.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ static bool parseMprisMetadata(FFDBusData* data, DBusMessageIter* rootIterator,
9595
}
9696
}
9797
} else if (ffStrEquals(mpris, "length")) {
98-
uint64_t length = 0; // microseconds
99-
if (ffDBusGetUint(data, &dictIterator, &length)) {
98+
int64_t length = 0; // microseconds
99+
if (ffDBusGetInt(data, &dictIterator, &length) && length > 0) {
100100
result->length = (uint32_t) (length / 1000);
101101
}
102102
}

src/detection/wifi/wifi_linux.c

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
#include <sys/ioctl.h>
99
#include <sys/types.h>
1010
#include <net/if.h>
11-
#include <linux/genetlink.h>
12-
#include <linux/nl80211.h>
1311
#include <linux/wireless.h>
1412
#include <unistd.h>
1513

16-
// Silence warning of `NLA_HDRLEN` and `NLA_ALIGN`
17-
#pragma GCC diagnostic ignored "-Wsign-conversion"
14+
#if !__BIG_ENDIAN__
15+
#include <linux/genetlink.h>
16+
#include <linux/nl80211.h>
17+
18+
// Silence warning of `NLA_HDRLEN` and `NLA_ALIGN`
19+
#pragma GCC diagnostic ignored "-Wsign-conversion"
1820

1921
typedef struct FFWifiNlContext {
2022
int sockFd;
@@ -23,10 +25,6 @@ typedef struct FFWifiNlContext {
2325
uint32_t seq;
2426
} FFWifiNlContext;
2527

26-
typedef struct FFWifiIcContext {
27-
int sockFd;
28-
} FFWifiIcContext;
29-
3028
typedef struct FFWifiSecurityFlags {
3129
bool privacy : 1;
3230
bool wep : 1;
@@ -199,7 +197,7 @@ static bool ffWifiNlInit(FFWifiNlContext* ctx) {
199197
ctx->sockFd,
200198
SOL_SOCKET,
201199
SO_RCVTIMEO,
202-
&(struct timeval) { .tv_sec = 0, .tv_usec = 250000 },
200+
&(struct timeval){ .tv_sec = 0, .tv_usec = 250000 },
203201
sizeof(struct timeval)) < 0) {
204202
FF_DEBUG("Failed to set netlink receive timeout: %s", strerror(errno));
205203
return false;
@@ -694,6 +692,11 @@ static const char* detectWithNetlink(FFWifiNlContext* ctx, FFWifiResult* item, u
694692
FF_DEBUG("Netlink wifi detection completed");
695693
return NULL;
696694
}
695+
#endif
696+
697+
typedef struct FFWifiIcContext {
698+
int sockFd;
699+
} FFWifiIcContext;
697700

698701
static const char* detectWithIoctl(FFWifiIcContext* ctx, FFWifiResult* item, char ifName[static IFNAMSIZ]) {
699702
int sock = -1;
@@ -893,7 +896,9 @@ const char* ffDetectWifi(FFlist* result) {
893896
return "if_nameindex() failed";
894897
}
895898

899+
#if !__BIG_ENDIAN__
896900
FFWifiNlContext nl = { .sockFd = -1 };
901+
#endif
897902
FFWifiIcContext ic = { .sockFd = -1 };
898903

899904
FF_STRBUF_AUTO_DESTROY buffer = ffStrbufCreate();
@@ -930,7 +935,10 @@ const char* ffDetectWifi(FFlist* result) {
930935

931936
if (operstate == 'u') {
932937
ffStrbufSetStatic(&item->inf.status, "up");
938+
939+
#if !__BIG_ENDIAN__
933940
detectWithNetlink(&nl, item, i->if_index);
941+
#endif
934942
detectWithIoctl(&ic, item, i->if_name);
935943
} else {
936944
ffStrbufSetStatic(&item->conn.status, "disconnected");
@@ -954,9 +962,11 @@ const char* ffDetectWifi(FFlist* result) {
954962
}
955963

956964
if_freenameindex(infs);
965+
#if !__BIG_ENDIAN__
957966
if (nl.sockFd >= 0) {
958967
close(nl.sockFd);
959968
}
969+
#endif
960970
if (ic.sockFd >= 0) {
961971
close(ic.sockFd);
962972
}

0 commit comments

Comments
 (0)