mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 745a8dda65 | |||
| c40086615f | |||
| fe3d38e542 | |||
| f19a3b5549 | |||
| eb308e1861 |
@@ -1,3 +1,12 @@
|
|||||||
|
# 2.0.4
|
||||||
|
|
||||||
|
Bugfixes:
|
||||||
|
* Fix building on 32-bit FreeBSD (Memory, BSD)
|
||||||
|
* Fix `--file-raw` doesn't work (Logo)
|
||||||
|
|
||||||
|
Features:
|
||||||
|
* Trait `-` as an alias for `/dev/stdin`. Available for `--file`, `--file-raw` and `--raw` (Logo)
|
||||||
|
|
||||||
# 2.0.3
|
# 2.0.3
|
||||||
|
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs & project homepage url
|
cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs & project homepage url
|
||||||
|
|
||||||
project(fastfetch
|
project(fastfetch
|
||||||
VERSION 2.0.3
|
VERSION 2.0.4
|
||||||
LANGUAGES C
|
LANGUAGES C
|
||||||
DESCRIPTION "Fast system information tool"
|
DESCRIPTION "Fast system information tool"
|
||||||
HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch"
|
HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
const char* ffDetectMemory(FFMemoryResult* ram)
|
const char* ffDetectMemory(FFMemoryResult* ram)
|
||||||
{
|
{
|
||||||
uint64_t length = sizeof(ram->bytesTotal);
|
size_t length = sizeof(ram->bytesTotal);
|
||||||
if (sysctl((int[]){ CTL_HW, HW_PHYSMEM }, 2, &ram->bytesTotal, &length, NULL, 0))
|
if (sysctl((int[]){ CTL_HW, HW_PHYSMEM }, 2, &ram->bytesTotal, &length, NULL, 0))
|
||||||
return "Failed to read hw.physmem";
|
return "Failed to read hw.physmem";
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -1205,7 +1205,8 @@ static void parseArguments(FFdata* data, int argc, const char** argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(i == argc - 1 || (
|
if(i == argc - 1 || (
|
||||||
*argv[i + 1] == '-' &&
|
argv[i + 1][0] == '-' &&
|
||||||
|
argv[i + 1][1] != '\0' && // `-` is used as an alias for `/dev/stdin`
|
||||||
strcasecmp(argv[i], "--separator-string") != 0 // Separator string can start with a -
|
strcasecmp(argv[i], "--separator-string") != 0 // Separator string can start with a -
|
||||||
)) {
|
)) {
|
||||||
parseOption(data, argv[i], NULL);
|
parseOption(data, argv[i], NULL);
|
||||||
|
|||||||
+4
-1
@@ -359,7 +359,10 @@ static bool logoPrintFileIfExists(bool doColorReplacement, bool raw)
|
|||||||
|
|
||||||
FF_STRBUF_AUTO_DESTROY content = ffStrbufCreate();
|
FF_STRBUF_AUTO_DESTROY content = ffStrbufCreate();
|
||||||
|
|
||||||
if(!ffAppendFileBuffer(options->source.chars, &content))
|
if(ffStrbufEqualS(&options->source, "-")
|
||||||
|
? !ffAppendFDBuffer(FFUnixFD2NativeFD(STDIN_FILENO), &content)
|
||||||
|
: !ffAppendFileBuffer(options->source.chars, &content)
|
||||||
|
)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Logo: Failed to load file content from logo source: %s \n", options->source.chars);
|
fprintf(stderr, "Logo: Failed to load file content from logo source: %s \n", options->source.chars);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
+1
-1
@@ -126,7 +126,7 @@ logoType:
|
|||||||
ffOptionParseString(key, value, &options->source);
|
ffOptionParseString(key, value, &options->source);
|
||||||
options->type = FF_LOGO_TYPE_FILE;
|
options->type = FF_LOGO_TYPE_FILE;
|
||||||
}
|
}
|
||||||
else if(strcasecmp(key, "raw") == 0)
|
else if(strcasecmp(subKey, "raw") == 0)
|
||||||
{
|
{
|
||||||
ffOptionParseString(key, value, &options->source);
|
ffOptionParseString(key, value, &options->source);
|
||||||
options->type = FF_LOGO_TYPE_FILE_RAW;
|
options->type = FF_LOGO_TYPE_FILE_RAW;
|
||||||
|
|||||||
Reference in New Issue
Block a user