李通洲
0cd6cb841d
Completion (Fish): fix fastfetch detection
2023-12-06 10:29:28 +08:00
xray_os
af94cf4d0d
fixing the name of my distro
2023-12-06 08:51:29 +08:00
Carter Li
ac76107940
Merge pull request #647 from fastfetch-cli/dev
...
Release v2.3.1
2.3.1
2023-12-05 20:52:37 +08:00
李通洲
c25fe53251
Merge remote-tracking branch 'upstream/master' into dev
2023-12-05 20:50:10 +08:00
李通洲
4137b3829a
Release v2.3.1
2023-12-05 20:48:09 +08:00
Viorel
0bb08049bf
Fix man page install location
2023-12-05 20:41:20 +08:00
Carter Li
293576f6d6
Merge pull request #645 from fastfetch-cli/dev
...
Release 2.3.0
2.3.0
2023-12-05 18:45:02 +08:00
李通洲
0bc725c5f6
Release: v2.3.0
2023-12-05 15:56:10 +08:00
李通洲
c1c735001c
Doc: update readme and changelog
2023-12-05 15:55:41 +08:00
李通洲
e350cce99e
Logo: fix building on Windows
2023-12-04 20:32:46 +08:00
apocelipes
1c24cb3ebb
refactor: simplify parsing
2023-12-04 19:47:34 +08:00
apocelipes
0662af17f4
fix(TerminalShell): fix reading procfs files
2023-12-04 19:47:34 +08:00
apocelipes
9fee532cb6
fix(CPUUsage): fix reading procfs files and simplify data parsing
2023-12-04 19:47:34 +08:00
apocelipes
57f88d2167
fix(Uptime): fix reading procfs files and simplify data parsing
2023-12-04 19:47:34 +08:00
apocelipes
ed879ee53c
fix(Swap): fix reading procfs files and simplify data parsing
2023-12-04 19:47:34 +08:00
apocelipes
6eae425679
fix(Memory): fix reading procfs files and simplify data parsing
...
Files in procfs are always changed by kernel.
It means if we read the data with more than one read syscall,
we could get an incorrect data which was broken by kernel.
A typical case about this problem was reported by psutil in
https://github.com/giampaolo/psutil/issues/2050
Using an big buffer let read reads the whole file can fix this.
psutil uses a 32K buffer while procps-ng uses a 8K buffer, i think a 8K buffer is enough.
2023-12-04 19:47:34 +08:00
李通洲
182c90b22c
CI: fix macOS (2nd try)
2023-12-04 19:12:58 +08:00
李通洲
2c2e0582a9
CI: try fixing macOS
2023-12-04 16:31:38 +08:00
李通洲
4216d40696
Doc: update changelog
2023-12-04 16:08:22 +08:00
李通洲
af6f395ba3
DiskIO: increase number of format args for disk size
2023-12-04 16:08:04 +08:00
李通洲
3fda6e425a
Global: never leak fd to child processes
2023-12-04 15:14:40 +08:00
李通洲
82581aa9e4
Processing: increase buffer size
2023-12-04 15:10:58 +08:00
李通洲
6bd515fed4
Packages (macOS): rename port to macports
2023-12-04 15:07:13 +08:00
李通洲
20970c6b71
CMake: silence compiler warnings
2023-12-04 15:00:25 +08:00
李通洲
532007267c
Logo (Builtin): add Ironclad
2023-12-04 14:55:10 +08:00
李通洲
87a4758497
Logo (Builtin): update parch
2023-12-04 14:49:43 +08:00
李通洲
6a9cce62ab
Logo (Builtin): add Adelie
2023-12-04 14:47:28 +08:00
李通洲
2816ea3797
Readme: update badge links (v2)
2023-12-04 14:40:35 +08:00
李通洲
5144081971
Readme: update badge links
2023-12-04 14:39:03 +08:00
李通洲
ccfe961a1f
DiskIO (FreeBSD): support disk name, size and physical type detection
2023-12-04 13:54:26 +08:00
李通洲
97211df285
DiskIO (macOS): detect disk size
2023-12-04 08:59:41 +08:00
apocelipes
4868517d53
optimize(IO): reduce memory usage during reading data from files to FFstrbufs
...
Avoid unnecessary calls of ffStrbufEnsureFree and only allocate
necessary memory.
In most cases, this will save 30% ~ 50% of memory used by ffAppendFDBuffer.
2023-12-03 19:57:49 +08:00
李通洲
2979bfe4ca
DiskIO: detect physical drive size
2023-12-03 19:02:29 +08:00
李通洲
42fd1a9cd7
DisplayServer (FreeBSD): enable libdrm support
2023-12-03 12:10:52 +08:00
李通洲
36298b8e93
Swap (FreeBSD): fix impl
2023-12-01 23:23:29 +08:00
李通洲
7168cc2ef2
Completions (Fish): reduce external dependencies
2023-12-01 16:01:14 +08:00
apocelipes
c398dc6c07
fix(Cursor): fix a memory leak detected by valgrind
2023-12-01 15:49:48 +08:00
李通洲
390801aee7
DisplayServer: fix build on FreeBSD
2023-11-30 20:25:23 +08:00
李通洲
e3f5563f8d
DisplayServer (Linux): fix build for Ubuntu 20.04 (v2)
2023-11-30 20:05:51 +08:00
李通洲
4a54b20c68
DisplayServer (Linux): fix compiling on Ubuntu 20.04
2023-11-30 16:42:56 +08:00
李通洲
ea3d904bfe
DisplayServer (Linux): improve performance for X11
...
Try fixing #634
2023-11-30 16:31:35 +08:00
李通洲
67f4b991d7
DisplayServer (Linux): use libdrm
...
Which correctly detects current mode ( instead of preferred mode ) and
supports refresh rate
2023-11-30 10:47:03 +08:00
apocelipes
53922779ba
fix(Common): fixes for ffProcessAppendOutput
...
- Use pipe2 on Linux and BSDs, which can set all flags through a single syscall.
- macOS/darwin does not support pipe2, add a wrapper for it.
- Close pipes when fork() failed. These fds should be closed when
the function returns.
- Set O_CLOEXEC at pipes, the exec() family of functions will close
this fds automatically.
- Use _exit instead of exit. Exit calls the callbacks registered by atexit
and flushes the stdio's buffer, which can lead to some unexpected behavior,
especially after an exec syscall failure.
- Fix timeout.
- Not use non-blocking IO. because we only wait for one file, and cannot
do other things during waiting.
2023-11-30 10:10:40 +08:00
apocelipes
1431cdcc83
fix(Terminal): make fastfetch works under ltrace and perf
...
Fastfetch incorrectly displays the terminal name as
"ltrace" or "perf" when debugging itself with ltrace and perf.
minor fix: remove duplicated ffStrbufClear since getShellVersion
already called it.
2023-11-28 23:22:51 +08:00
李通洲
968a43cb29
Monitor (Linux): don't report disabled monitors
2023-11-28 16:11:32 +08:00
李通洲
0c522bdc10
Display (Linux): don't report disabled displays when using DRM
...
Ref: #634
2023-11-28 07:59:28 +00:00
李通洲
5db3c903e5
Host (macOS): fix build
2023-11-28 15:05:10 +08:00
李通洲
91c23c533a
Host (macOS): add general method to query product name
2023-11-28 13:36:19 +08:00
李通洲
00721630ce
Board (Apple): use machine model indentifier as motherboard name
2023-11-28 13:36:19 +08:00
李通洲
167b130011
Uptime (Linux): fix maybe uninitialized variable errors
2023-11-27 20:52:14 +08:00