李通洲
1128a75d8c
InitSystem: uses SystemBasicProcessInformation if available
2026-09-03 10:04:55 +08:00
李通洲
a88ef86ce3
InitSystem (Windows): fixes logic of assertions
2026-08-04 21:15:34 +08:00
李通洲
7dcc7d40d5
InitSystem (Windows): adds support
...
Note: Windows doesn't have a unix-like init system process, but it does have the first userland process, which is `smss.exe`
2026-07-14 15:04:29 +08:00
李通洲
61656a1a7a
Global: replaces __attribute__ to C23 [[attribute]]
2026-07-11 08:14:21 +08:00
李通洲
ba18705d2e
Global: replaces NULL to nullptr
2026-07-10 18:10:09 +08:00
Carter Li
d1bf208a92
Chore: renames stringUtils to strutil
2026-05-28 15:58:08 +08:00
Carter Li
f6a363f7ad
Global: unifies GCC attributes usage
2026-04-09 20:02:04 +08:00
李通洲
e0eba8ce21
Chore: run clang-format
...
```bash
find . -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) ! -path "src/3rdparty/*" -print0 | xargs -0 clang-format -i
```
2026-03-29 10:03:32 +08:00
Carter Li
d60b25e424
Refactor: renames src/util to src/common
2026-01-06 09:48:38 +08:00
Carter Li
61690a1804
Util: moves util/io/io.h to util/io.h
2026-01-06 09:13:40 +08:00
李通洲
1e43e35857
Chore: merges common/* into util/*
2026-01-05 17:54:41 +08:00
Carter Li
7a87638fec
InitSystem (GNU): support shepherd detection
2025-08-27 14:46:20 +08:00
Carter Li
0b2c0445c0
InitSystem: tidy
2025-08-24 22:09:22 +08:00
Carter Li
82a1eaf276
Chore: tidy tabs
2025-08-24 19:09:51 +08:00
Yelninei
d553bc4893
WIP: shepherd initsystem
2025-08-24 11:29:01 +01:00
李通洲
75d2c668d0
Modules: refactor module option handling for static allocation
...
Moves module option structs out of global config and removes dynamic allocation, using static buffers and size assertions for safer, simpler management.
Refactors module initialization and destruction to work with isolated option structs, eliminating the need for the previous modules container and related code.
Unifies module option header usage and updates detection logic to leverage statically-sized option buffers, improving encapsulation and maintainability.
Simplifies module function signatures and reduces coupling between modules and config.
Enhances future extensibility and reliability by enforcing max size constraints and removing unnecessary indirections.
2025-08-04 14:46:01 +08:00
李通洲
07c61f70d9
InitSystem (Haiku): set pid=0 if fails to detect init pid
2025-03-31 23:39:25 +08:00
Carter Li
948a965c7a
Terminal (Haiku): detect terminal version
2025-02-17 21:22:12 +08:00
François Revol
1c858ae835
InitSystem (Haiku): add support
2025-02-15 12:08:27 +08:00
李通洲
90b2bf0ad6
InitSystem (Linux): fix dinit version parsing
...
Ref: https://github.com/fastfetch-cli/fastfetch/issues/1245#issuecomment-2326516448
2024-09-03 21:36:15 +08:00
李通洲
352ed51504
InitSystem (FreeBSD): fix build
2024-09-03 20:29:43 +08:00
Carter Li
bbe4988054
InitSystem (Linux): support dinit
...
Fix #1245
2024-09-03 20:03:53 +08:00
李通洲
df729938c5
Binary: improve performance
2024-08-27 16:41:23 +08:00
李通洲
dd2d343630
Global: fix build on Windows
2024-08-20 23:52:29 +08:00
李通洲
8c26e776c2
InitSystem (Android): don't break build
2024-08-09 08:40:41 +08:00
李通洲
1394a0ae2e
InitSystem (macOS): fix compiling
2024-08-08 15:23:40 +08:00
Carter Li
3fae29ba8f
InitSystem (Linux): add fast path for systemd version detection
2024-08-08 15:09:37 +08:00
Carter Li
beabaa90f1
InitSystem (Android): fix detection
2024-07-12 20:24:59 +08:00
Carter Li
765c7b42b6
General: rename --ts-version to --detect-version
...
And use it in more modules
2024-07-10 21:55:37 +08:00
李通洲
b308ded1e1
Global (Linux): silence some compiler warnings
2024-06-05 16:11:52 +08:00
李通洲
1863bde916
InitSystem: better systemd version detection
2024-05-30 08:45:14 +08:00
李通洲
7e8b204644
InitSystem: resolve real path of exe path
2024-05-29 19:12:43 +08:00
李通洲
bb11cff700
InitSystem: detect version
2024-05-29 14:36:28 +08:00
李通洲
90690ba315
InitSystem: add new module
...
Fix #974
2024-05-29 11:14:39 +08:00