Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package fastfetch for openSUSE:Factory checked in at 2025-04-14 12:57:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/fastfetch (Old) and /work/SRC/openSUSE:Factory/.fastfetch.new.1907 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "fastfetch" Mon Apr 14 12:57:57 2025 rev:63 rq:1268901 version:2.40.4 Changes: -------- --- /work/SRC/openSUSE:Factory/fastfetch/fastfetch.changes 2025-04-07 17:36:41.709019380 +0200 +++ /work/SRC/openSUSE:Factory/.fastfetch.new.1907/fastfetch.changes 2025-04-14 12:58:02.319383294 +0200 @@ -1,0 +2,18 @@ +Sat Apr 12 21:56:44 UTC 2025 - RN <r_ni...@proton.me> + +- update to 2.40.4 + Bugfixes: + * Fix loading presets config on Windows + (gh#fastfetch-cli/fastfetch#1682) + - Regression of v2.40.0 + * Remove the prefix `v` of Hyprland version on Arch Linux (WM, + Linux) +- update to 2.40.3 + Bugfixes: + * Fix loading example configs from presets directory + (gh#fastfetch-cli/fastfetch#1672) + - Regression of v2.40.2 + * Mark kitty image protocol support for warp terminal on macOS + too (Logo) + +------------------------------------------------------------------- Old: ---- fastfetch-2.40.2.tar.gz New: ---- fastfetch-2.40.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fastfetch.spec ++++++ --- /var/tmp/diff_new_pack.zJUrqQ/_old 2025-04-14 12:58:03.935451159 +0200 +++ /var/tmp/diff_new_pack.zJUrqQ/_new 2025-04-14 12:58:03.963452335 +0200 @@ -17,7 +17,7 @@ Name: fastfetch -Version: 2.40.2 +Version: 2.40.4 Release: 0 Summary: Neofetch-like tool written mostly in C License: MIT ++++++ fastfetch-2.40.2.tar.gz -> fastfetch-2.40.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fastfetch-2.40.2/CHANGELOG.md new/fastfetch-2.40.4/CHANGELOG.md --- old/fastfetch-2.40.2/CHANGELOG.md 2025-04-04 13:38:49.000000000 +0200 +++ new/fastfetch-2.40.4/CHANGELOG.md 2025-04-09 08:24:27.000000000 +0200 @@ -1,3 +1,17 @@ +# 2.40.4 + +Bugfixes: +* Fix loading presets config on Windows (Windows, #1682) + * Regression of v2.40.0 +* Remove the prefix `v` of Hyprland version on Arch Linux (WM, Linux) + +# 2.40.3 + +Bugfixes: +* Fix loading example configs from presets directory (#1672) + * Regression of v2.40.2 +* Mark kitty image protocol support for warp terminal on macOS too (Logo) + # 2.40.2 Changes: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fastfetch-2.40.2/CMakeLists.txt new/fastfetch-2.40.4/CMakeLists.txt --- old/fastfetch-2.40.2/CMakeLists.txt 2025-04-04 13:38:49.000000000 +0200 +++ new/fastfetch-2.40.4/CMakeLists.txt 2025-04-09 08:24:27.000000000 +0200 @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs & project homepage url project(fastfetch - VERSION 2.40.2 + VERSION 2.40.4 LANGUAGES C DESCRIPTION "Fast neofetch-like system information tool" HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fastfetch-2.40.2/src/detection/wm/wm_linux.c new/fastfetch-2.40.4/src/detection/wm/wm_linux.c --- old/fastfetch-2.40.2/src/detection/wm/wm_linux.c 2025-04-04 13:38:49.000000000 +0200 +++ new/fastfetch-2.40.4/src/detection/wm/wm_linux.c 2025-04-09 08:24:27.000000000 +0200 @@ -38,6 +38,7 @@ { ffStrbufSubstrAfterFirstC(result, '"'); ffStrbufSubstrBeforeFirstC(result, '"'); + ffStrbufTrimLeft(result, 'v'); FF_DEBUG("Extracted version from version.h: %s", result->chars); return NULL; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fastfetch-2.40.2/src/fastfetch.c new/fastfetch-2.40.4/src/fastfetch.c --- old/fastfetch-2.40.2/src/fastfetch.c 2025-04-04 13:38:49.000000000 +0200 +++ new/fastfetch-2.40.4/src/fastfetch.c 2025-04-09 08:24:27.000000000 +0200 @@ -466,38 +466,40 @@ if (parseJsoncFile(absolutePath.chars, strictJson)) return; - if (!ffStrbufContainC(&absolutePath, '/') - #ifdef _WIN32 - && !ffStrbufContainC(&absolutePath, '\\') - #endif - ) + //Try to load as a relative path + + FF_LIST_FOR_EACH(FFstrbuf, path, instance.state.platform.dataDirs) { - //Try to load as a relative path + ffStrbufSet(&absolutePath, path); + ffStrbufAppendS(&absolutePath, "fastfetch/presets/"); + ffStrbufAppendS(&absolutePath, value); + if (needExtension) + ffStrbufAppendS(&absolutePath, ".jsonc"); + + if (parseJsoncFile(absolutePath.chars, strictJson)) return; + } - FF_LIST_FOR_EACH(FFstrbuf, path, instance.state.platform.dataDirs) - { - ffStrbufSet(&absolutePath, path); - ffStrbufAppendS(&absolutePath, "fastfetch/presets/"); - ffStrbufAppendS(&absolutePath, value); - if (needExtension) - ffStrbufAppendS(&absolutePath, ".jsonc"); - - if (parseJsoncFile(absolutePath.chars, strictJson)) return; - } - - //Try to load as a relative path with the directory of fastfetch binary - - if (instance.state.platform.exePath.length) - { - ffStrbufSet(&absolutePath, &instance.state.platform.exePath); - ffStrbufSubstrBeforeLastC(&absolutePath, '/'); - ffStrbufAppendS(&absolutePath, "/"); - ffStrbufAppendS(&absolutePath, value); - if (needExtension) - ffStrbufAppendS(&absolutePath, ".jsonc"); + //Try to load as a relative path with the directory of fastfetch binary + + if (instance.state.platform.exePath.length) + { + uint32_t lastSlash = ffStrbufLastIndexC(&instance.state.platform.exePath, '/') + 1; + assert(lastSlash < instance.state.platform.exePath.length); - if (parseJsoncFile(absolutePath.chars, strictJson)) return; - } + // Try {exePath}/ + ffStrbufSetNS(&absolutePath, lastSlash, instance.state.platform.exePath.chars); + ffStrbufAppendS(&absolutePath, value); + if (needExtension) + ffStrbufAppendS(&absolutePath, ".jsonc"); + if (parseJsoncFile(absolutePath.chars, strictJson)) return; + + // Try {exePath}/presets/ + ffStrbufSubstrBefore(&absolutePath, lastSlash); + ffStrbufAppendS(&absolutePath, "presets/"); + ffStrbufAppendS(&absolutePath, value); + if (needExtension) + ffStrbufAppendS(&absolutePath, ".jsonc"); + if (parseJsoncFile(absolutePath.chars, strictJson)) return; } //File not found diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fastfetch-2.40.2/src/logo/logo.c new/fastfetch-2.40.4/src/logo/logo.c --- old/fastfetch-2.40.2/src/logo/logo.c 2025-04-04 13:38:49.000000000 +0200 +++ new/fastfetch-2.40.4/src/logo/logo.c 2025-04-09 08:24:27.000000000 +0200 @@ -627,7 +627,12 @@ ffStrbufIgnCaseEqualS(&terminal->processName, "wezterm") || ffStrbufIgnCaseEqualS(&terminal->processName, "wayst") || ffStrbufIgnCaseEqualS(&terminal->processName, "ghostty") || - ffStrbufIgnCaseEqualS(&terminal->processName, "warp"); + #ifdef __APPLE__ + ffStrbufIgnCaseEqualS(&terminal->processName, "WarpTerminal") || + #else + ffStrbufIgnCaseEqualS(&terminal->processName, "warp") || + #endif + false; //Try to load the logo as an image. If it succeeds, print it and return. if(logoPrintImageIfExists(supportsKitty ? FF_LOGO_TYPE_IMAGE_KITTY : FF_LOGO_TYPE_IMAGE_CHAFA, false)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fastfetch-2.40.2/src/util/platform/FFPlatform_unix.c new/fastfetch-2.40.4/src/util/platform/FFPlatform_unix.c --- old/fastfetch-2.40.2/src/util/platform/FFPlatform_unix.c 2025-04-04 13:38:49.000000000 +0200 +++ new/fastfetch-2.40.4/src/util/platform/FFPlatform_unix.c 2025-04-09 08:24:27.000000000 +0200 @@ -172,14 +172,6 @@ #endif ffPlatformPathAddAbsolute(&platform->dataDirs, FASTFETCH_TARGET_DIR_USR "/local/share/"); ffPlatformPathAddAbsolute(&platform->dataDirs, FASTFETCH_TARGET_DIR_USR "/share/"); - - if (platform->exePath.length > 0) - { - // Add ${currentExePath} - FF_STRBUF_AUTO_DESTROY path = ffStrbufCreateCopy(&platform->exePath); - ffStrbufSubstrBeforeLastC(&path, '/'); - ffPlatformPathAddAbsolute(&platform->dataDirs, path.chars); - } } static void getUserName(FFPlatform* platform, const struct passwd* pwd) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fastfetch-2.40.2/src/util/platform/FFPlatform_windows.c new/fastfetch-2.40.4/src/util/platform/FFPlatform_windows.c --- old/fastfetch-2.40.2/src/util/platform/FFPlatform_windows.c 2025-04-04 13:38:49.000000000 +0200 +++ new/fastfetch-2.40.4/src/util/platform/FFPlatform_windows.c 2025-04-09 08:24:27.000000000 +0200 @@ -129,14 +129,6 @@ platformPathAddKnownFolder(&platform->dataDirs, &FOLDERID_RoamingAppData); platformPathAddKnownFolder(&platform->dataDirs, &FOLDERID_LocalAppData); ffPlatformPathAddHome(&platform->dataDirs, platform, ""); - - if (platform->exePath.length > 0) - { - // Add ${currentExePath} - FF_STRBUF_AUTO_DESTROY path = ffStrbufCreateCopy(&platform->exePath); - ffStrbufSubstrBeforeLastC(&path, '/'); - ffPlatformPathAddAbsolute(&platform->dataDirs, path.chars); - } } static void getUserName(FFPlatform* platform)