Skip to content

Commit 58a1d96

Browse files
authored
Merge pull request #1425 from fastfetch-cli/dev
Release: v2.31.0
2 parents 6d45fe6 + 6edf763 commit 58a1d96

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1136
-472
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ jobs:
274274

275275
macos-universal:
276276
name: macOS-universal
277-
runs-on: macos-12
277+
runs-on: macos-latest
278278
permissions:
279279
security-events: write
280280
contents: read

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
# 2.31.0
2+
3+
Bugfixes:
4+
* Improve performance of media detection; fix musikcube detection (Media, Linux)
5+
* After the change, `general.processingTimeout` will also control the timeout of dbus remote calls
6+
* Fix invalid variable names (#1408, Users)
7+
* Change physical size detection to use basic display parameters (#1406)
8+
* Fix possible sigfaults when detecting displays (#1393)
9+
* Fix Nvidia card type detection
10+
* Fix wl-restart parsing (#1422, WM, Linux)
11+
* Fix syntax error in completion file (#1421)
12+
* Fix hunging when using `ssh-agent` as command text (#1418, Command, macOS)
13+
14+
Features:
15+
* Remove support of xcb & xlib and xrandr extension is always required (Display)
16+
* Support preferred resolution & refresh rate detection
17+
* On macOS there is no preferred resolution reported and maximum available resolution is reported instead.
18+
* `--display-format {preferred-width}x{preferred-height}@{preferred-refresh-rate}`
19+
* Report scale factor in custom format (Display)
20+
* `--display-format {scale-factor}`
21+
* Detect current Wi-Fi channel and maximum frequency (Wifi)
22+
* Report processor package count (#1413, CPU)
23+
* Remove duplicate whitespaces in CPU name
24+
* Support sakura terminal version & font detection (Terminal / TerminalFont, Linux)
25+
26+
Logo:
27+
* Fix LMDE
28+
* Update MidOS
29+
* Add Windows Server 2025
30+
131
# 2.30.1
232

333
Bugfixes:

CMakeLists.txt

Lines changed: 4 additions & 11 deletions
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.30.1
4+
VERSION 2.31.0
55
LANGUAGES C
66
DESCRIPTION "Fast neofetch-like system information tool"
77
HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch"
@@ -57,9 +57,7 @@ include(CMakeDependentOption)
5757
cmake_dependent_option(ENABLE_VULKAN "Enable vulkan" ON "LINUX OR APPLE OR FreeBSD OR OpenBSD OR NetBSD OR WIN32 OR ANDROID OR SunOS" OFF)
5858
cmake_dependent_option(ENABLE_WAYLAND "Enable wayland-client" ON "LINUX OR FreeBSD OR OpenBSD OR NetBSD" OFF)
5959
cmake_dependent_option(ENABLE_XCB_RANDR "Enable xcb-randr" ON "LINUX OR FreeBSD OR OpenBSD OR NetBSD OR SunOS" OFF)
60-
cmake_dependent_option(ENABLE_XCB "Enable xcb" ON "LINUX OR FreeBSD OR OpenBSD OR NetBSD OR SunOS" OFF)
6160
cmake_dependent_option(ENABLE_XRANDR "Enable xrandr" ON "LINUX OR FreeBSD OR OpenBSD OR NetBSD OR SunOS" OFF)
62-
cmake_dependent_option(ENABLE_X11 "Enable x11" ON "LINUX OR FreeBSD OR OpenBSD OR NetBSD OR SunOS" OFF)
6361
cmake_dependent_option(ENABLE_DRM "Enable libdrm" ON "LINUX OR FreeBSD OR OpenBSD OR NetBSD OR SunOS" OFF)
6462
cmake_dependent_option(ENABLE_DRM_AMDGPU "Enable libdrm_amdgpu" ON "LINUX" OFF)
6563
cmake_dependent_option(ENABLE_GIO "Enable gio-2.0" ON "LINUX OR FreeBSD OR OpenBSD OR NetBSD OR SunOS" OFF)
@@ -1222,6 +1220,9 @@ endif()
12221220
if(NOT BINARY_LINK_TYPE STREQUAL "dlopen")
12231221
message(STATUS "Enabling custom link type: ${BINARY_LINK_TYPE}")
12241222
target_compile_definitions(libfastfetch PRIVATE FF_DISABLE_DLOPEN=1)
1223+
if(NOT WIN32)
1224+
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--copy-dt-needed-entries")
1225+
endif()
12251226
endif()
12261227

12271228
function(ff_lib_enable VARNAME PKGCONFIG_NAMES CMAKE_NAME)
@@ -1277,18 +1278,10 @@ ff_lib_enable(XCB_RANDR
12771278
"xcb-randr"
12781279
"XcbRandr"
12791280
)
1280-
ff_lib_enable(XCB
1281-
"xcb"
1282-
"Xcb"
1283-
)
12841281
ff_lib_enable(XRANDR
12851282
"xrandr"
12861283
"XRandr"
12871284
)
1288-
ff_lib_enable(X11
1289-
"x11"
1290-
"X11"
1291-
)
12921285
ff_lib_enable(DRM
12931286
"libdrm"
12941287
"Libdrm"

completions/fastfetch.zsh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ def main():
2626
for flag in data[key]:
2727
if flag["long"] == "logo-color-[1-9]":
2828
for i in range(1, 10):
29-
command_prefix = f"--logo-color-{i}[{flag["desc"]} ({i})]"
29+
command_prefix = f"--logo-color-{i}[{flag['desc']} ({i})]"
3030
print_command(command_prefix, flag)
3131
continue
3232
3333
if flag.get("pseudo", False):
3434
continue
3535
3636
if "short" in flag:
37-
command_prefix = f"-{flag["short"]}[{flag["desc"]}]"
37+
command_prefix = f"-{flag['short']}[{flag['desc']}]"
3838
print_command(command_prefix, flag)
3939
4040
if "long" in flag:
41-
command_prefix = f"--{flag["long"]}[{flag["desc"]}]"
41+
command_prefix = f"--{flag['long']}[{flag['desc']}]"
4242
print_command(command_prefix, flag)
4343
4444

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
fastfetch (2.30.1) jammy; urgency=medium
2+
3+
* Update to 2.30.1
4+
5+
-- Carter Li <[email protected]> Mon, 18 Nov 2024 15:40:48 +0800
6+
17
fastfetch (2.30.0) jammy; urgency=medium
28

39
* Update to 2.30.0

debian/files

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fastfetch_2.30.0_source.buildinfo universe/utils optional
1+
fastfetch_2.30.1_source.buildinfo universe/utils optional

presets/ci.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@
8787
"opengl",
8888
"opencl",
8989
"users",
90-
"bluetooth",
91-
"bluetoothradio",
90+
// "bluetooth", // doesn't work on macOS because it requires bluetooth permissions
91+
// "bluetoothradio",
9292
"sound",
9393
"camera",
9494
"gamepad",

scripts/gen-man.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"""
1010

1111
from json import load
12-
from datetime import date
12+
from datetime import datetime, timezone
1313
from time import time
1414
from re import search
1515
from os import environ, path
@@ -36,8 +36,10 @@
3636
titlePage = "Fastfetch man page"
3737
# date (center footer)
3838
# format : "Month (abbreviation) Day Year"
39-
todayDate = date.fromtimestamp(
40-
int(environ.get("SOURCE_DATE_EPOCH", time()))).strftime("%b %d %Y")
39+
todayDate = datetime.fromtimestamp(
40+
int(environ.get("SOURCE_DATE_EPOCH", time())),
41+
tz=timezone.utc,
42+
).strftime("%b %d %Y")
4143
# file to fastfetch version (left footer)
4244
pathToVersionFile = path.join(pathToCurrentDir, "../CMakeLists.txt")
4345

src/common/dbus.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ DBusMessage* ffDBusGetMethodReply(FFDBusData* dbus, const char* busName, const c
171171
if (arg)
172172
dbus->lib->ffdbus_message_append_args(message, DBUS_TYPE_STRING, &arg, DBUS_TYPE_INVALID);
173173

174-
DBusMessage* reply = dbus->lib->ffdbus_connection_send_with_reply_and_block(dbus->connection, message, FF_DBUS_TIMEOUT_MILLISECONDS, NULL);
174+
DBusMessage* reply = dbus->lib->ffdbus_connection_send_with_reply_and_block(dbus->connection, message, instance.config.general.processingTimeout, NULL);
175175

176176
dbus->lib->ffdbus_message_unref(message);
177177

@@ -189,7 +189,7 @@ DBusMessage* ffDBusGetProperty(FFDBusData* dbus, const char* busName, const char
189189
DBUS_TYPE_STRING, &property,
190190
DBUS_TYPE_INVALID);
191191

192-
DBusMessage* reply = dbus->lib->ffdbus_connection_send_with_reply_and_block(dbus->connection, message, FF_DBUS_TIMEOUT_MILLISECONDS, NULL);
192+
DBusMessage* reply = dbus->lib->ffdbus_connection_send_with_reply_and_block(dbus->connection, message, instance.config.general.processingTimeout, NULL);
193193

194194
dbus->lib->ffdbus_message_unref(message);
195195

src/common/dbus.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
#include "util/FFstrbuf.h"
77
#include "common/library.h"
88

9-
#define FF_DBUS_TIMEOUT_MILLISECONDS 100
10-
119
typedef struct FFDBusLibrary
1210
{
1311
FF_LIBRARY_SYMBOL(dbus_bus_get)
@@ -38,4 +36,9 @@ DBusMessage* ffDBusGetProperty(FFDBusData* dbus, const char* busName, const char
3836
bool ffDBusGetPropertyString(FFDBusData* dbus, const char* busName, const char* objectPath, const char* interface, const char* property, FFstrbuf* result);
3937
bool ffDBusGetPropertyUint(FFDBusData* dbus, const char* busName, const char* objectPath, const char* interface, const char* property, uint32_t* result);
4038

39+
static inline DBusMessage* ffDBusGetAllProperties(FFDBusData* dbus, const char* busName, const char* objectPath, const char* interface)
40+
{
41+
return ffDBusGetMethodReply(dbus, busName, objectPath, "org.freedesktop.DBus.Properties", "GetAll", interface);
42+
}
43+
4144
#endif // FF_HAVE_DBUS

0 commit comments

Comments
 (0)