seeseesee 我今天试着改了下 fastfetch 源代码,发现是 /proc/cpuinfo
第一行后面空行的问题……它那个 parse 的函数原本就可以处理大小写了。可能 debian 上的 fastfetch 是打了补丁的?我是这么打补丁的,现在在我机器上没问题了
diff --git a/src/detection/cpu/cpu_linux.c b/src/detection/cpu/cpu_linux.c
index 5b948150..d83948b9 100644
--- a/src/detection/cpu/cpu_linux.c
+++ b/src/detection/cpu/cpu_linux.c
@@ -145,7 +145,7 @@ static const char* parseCpuInfo(FILE* cpuinfo, FFCPUResult* cpu, FFstrbuf* physi
while(getline(&line, &len, cpuinfo) != -1)
{
//Stop after the first CPU
- if(*line == '\0' || *line == '\n')
+ if((*line == '\0' || *line == '\n') && cpu->name.length > 0)
break;
(void)(
就是这么干跟 dev
分支是冲突的……下次更新要重写(