Commit Graph

704 Commits

Author SHA1 Message Date
Carter Li 197d1c6e5d Uptime (SunOS): improves detection via kstat 2026-10-25 00:13:54 +08:00
李通洲 f93ffed57a Disk: fix Windows quota affecting free space and unify disk size calculation
- Windows: use FILE_FS_FULL_SIZE_INFORMATION_EX on Windows 10 1809+ (Build >= 17763) when calcType != AVAILABLE to get ActualTotalAllocationUnits/ActualAvailableAllocationUnits (ignoring per-user disk quotas). Fall back to legacy FILE_FS_FULL_SIZE_INFORMATION with CallerAvailableAllocationUnits when calcType is AVAILABLE or EX is unavailable.
- Unix-like: respect --disk-calc-type. Use f_bfree for FREE, f_bavail for AVAILABLE (Linux/BSD/SunOS). Haiku currently always uses free_blocks.
- Refactor FFDisk: remove bytesUsed and bytesAvailable; compute used = total - free in disk module.
- Disk module: update custom format (remove `size-available`, add `bytes-used` and `bytes-total`); update JSON output (remove `bytes.available`, `bytes.used`).
- Disk detection: stop computing used in common path; let each platform set bytesFree by chosen semantics.

Fixes #2651
2026-10-13 15:35:12 +08:00
Carter Li b7bc8ca99d Display (Android): adds cmd display get-displays back
and updates changelog
2026-10-12 14:40:09 +08:00
Carter Li 3b042d26ab Sound (Linux): adds ALSA backend as a fallback 2026-10-12 00:22:02 +08:00
Carter Li ad1d12ed38 Terminal (Android): reports real app display name instead of hard coding Termux 2026-10-11 10:42:42 +08:00
Carter Li ab6ec4c3f5 Media (Android): adds app uid support 2026-10-11 10:42:41 +08:00
Carter Li 1f32e0bcb2 Display (Android): removes old detection methods 2026-10-11 00:44:15 +08:00
Carter Li 7f9faeb720 Display (Android): detects via binder 2026-10-10 22:57:48 +08:00
Carter Li e0361fdcf6 Doc: updates changelog 2026-10-10 16:32:41 +08:00
Carter Li 132e69b580 Percent: clamps bar width to 0% ~ 100% 2026-10-10 14:00:30 +08:00
Carter Li 07a7211526 Command: extends useStdErr to useOutput 2026-10-10 14:00:30 +08:00
Carter Li 30d6fb542b LocalIP (macOS): fixes MAC address reporting 20:00:00:00:00:00 on macOS 27 2026-10-09 23:02:44 +08:00
Carter Li 10ca4f171e Global (Android): fixes building on old API level 2026-10-07 01:45:49 +08:00
Ashed 995d172d3e Global: Added Finnish support (#2633)
* Global: Added fi support

* Remove a random space i accidentally added

* Fix more spaces
2026-10-03 18:35:56 +08:00
Carter Li 7099964530 Release: v2.70.0 2026-10-02 22:22:44 +08:00
Carter Li ab200636f1 Battery (Android): adds temperature and remaining time detection 2026-10-01 20:59:13 +08:00
Carter Li 2838dccbfd Sound (Android): adds support via /dev/binder 2026-09-29 23:58:02 +08:00
Carter Li cdbe8f54c6 TerminalFont (Linux): uses ffFontInitXft to parse foot terminal font
Fixes #2624
2026-09-28 09:13:16 +08:00
Joshua Rogers f00a021e27 Completion (Bash): fixes --config/-c path completion splitting on spaces (#2621) [ci skip]
Co-authored-by: Carter Li <CarterLi@users.noreply.github.com>
2026-09-27 09:00:11 +08:00
İhsan Deniz 676dbcfee2 Vulkan: fixes driver name concatenation on multi-GPU systems (#2620)
* Vulkan: fixes driver name concatenation on multi-GPU systems

applyDriverName appended to the result buffer without clearing it. When
a later device reported a higher API version, its driver name was
appended to the name of the earlier device instead of replacing it, as
the comment in detectVulkan intends.

* CHANGELOG: moves the #2615 entry to Unreleased

#2616 was opened after 2.69.0 had been released, but its entry was
written under 2.69.0 Bugfixes, so the changelog listed the fix as part
of 2.69.0.
2026-09-27 08:35:20 +08:00
İhsan Deniz 9801d89316 Brightness (Linux): fixes random built-in flag and stdout leak in DDC/CI detection (#2616)
DDC/CI results never set `builtin`, and FF_LIST_ADD does not zero the new
element, so external monitors were reported as built-in or external at
random. Set it to false, as the BSD DDC/CI backend does.

FF_SUPPRESS_IO() was declared inside the `if (ffddca_init)` block, so its
cleanup restored stdout before display detection ran and libddcutil trace
lines could reach the output, ahead of `--format json` too. Declare it at
function scope so it covers the whole detection, including the
FF_DISABLE_DLOPEN build.

Closes #2615
2026-09-26 18:18:43 +08:00
李通洲 7fdd1d8e93 LocalIP / NetIO / DNS (Windows): improves performance
Fixes #2614
2026-09-26 14:17:24 +08:00
李通洲 866c5e89c8 Global: fixes several issues found by AI 2026-09-25 17:28:44 +08:00
Carter Li 537635cd9c Logo: adds option logo.position: auto 2026-09-25 09:51:34 +08:00
Carter Li 80a931a87f CPU (Linux): fixes Snapdragon X2 series model detection
Fixes #2611
2026-09-25 08:46:13 +08:00
李通洲 d223b04ad8 Media (Android): adds support 2026-09-25 01:55:23 +08:00
李通洲 0e04ebdf63 Wallpaper (Android): adds support 2026-09-24 23:42:27 +08:00
Carter Li 00ccd8be12 Doc: simplifies changelog 2026-09-24 17:44:48 +08:00
Carter Li 42e4fe3085 General: adds general.preload.lua option 2026-09-24 15:55:23 +08:00
Carter Li ccf1dcfa6d CMake: disables quickjs by default 2026-09-24 14:17:55 +08:00
Carter Li b6b5dabd54 Packages (Windows): disables winget again 2026-09-24 14:09:41 +08:00
Carter Li e1e2de0929 Gamepad (macOS): adds battery level detection support 2026-09-24 11:15:28 +08:00
李通洲 982313063d Gamepad (Windows): fixes battery level detection 2026-09-24 00:02:27 +08:00
Carter Li 4a97cc6825 Bluetooth: adds option showType 2026-09-23 15:11:06 +08:00
Carter Li a78d2a7737 Bluetooth (Windows / macOS): adds Bluetooth LE device detection 2026-09-23 14:02:08 +08:00
Carter Li c26bace3c2 Global: fixes a lot bugs found by AI 2026-09-22 22:09:26 +08:00
李通洲 7f3209181e Global: adds general cache layer 2026-09-22 00:45:40 +08:00
李通洲 256c6a4257 PublicIP / Weather: fixes possible can only be used once due to internal limitations error 2026-09-21 20:08:11 +08:00
Carter Li 17b98007b4 Logo (Image): improves compatibility for iTerm when printing gif logo 2026-09-21 14:26:29 +08:00
Carter Li 6842ae0757 Common (Format): fixes module format strings mishandling a value that carries more than one leading ANSI escape sequence 2026-09-21 14:22:14 +08:00
Piotr Kubaj fd08fdb9df Global (FreeBSD): fixes build when libc defines memrchr as a macro (#2599)
FreeBSD 16.0-CURRENT's <string.h> now provides C23-style
qualifier-preserving wrappers for the string search functions.  Besides
the prototype, `memrchr` (like `memchr`, `strchr`, `strstr`, `memmem`,
...) is also defined as a function-like macro built on `_Generic`:

    #define memrchr(b, c, n) __qualsel((b), \
        (const void *)(memrchr)((b), (c), (n)), (memrchr)((b), (c), (n)))

`common/memrchr.h` redeclares the function unconditionally.  When
<string.h> has already been included, that declaration is expanded by
the macro and every translation unit fails with:

    src/common/memrchr.h:11:7: error: expected identifier or '('
       11 | void* memrchr(const void* s, int c, size_t n);

A libc that defines `memrchr` as a macro has necessarily declared the
function it wraps, so skip our declaration in that case.  Nothing
changes on platforms where `memrchr` is not a macro, and the fallback
implementation is still selected by `check_function_exists`.
2026-09-21 01:21:57 -05:00
Natsu 203ccb31fa Packages (Linux): detects rum overlay packages (#2597) 2026-09-21 00:30:25 -05:00
Carter Li 3503facd68 Doc: update changelog [ci skip] 2026-09-21 09:43:09 +08:00
李通洲 0b76d33f07 Wifi(Android): fixes errors when location permission is not granted
Security detection support is also added
2026-09-20 23:49:39 +08:00
李通洲 f96a290f3b Packages (Windows): caches winget packages count; enables winget by default 2026-09-20 13:05:09 +08:00
李通洲 67da836a27 Top: reduces waitTime to 250ms 2026-09-20 11:24:25 +08:00
李通洲 15e4bc998a Global (Android): code cleanup 2026-09-20 09:23:32 +08:00
李通洲 f9f368c1fb Battery (Android): uses dumpsys if available 2026-09-20 08:13:11 +08:00
李通洲 4a33a2c410 Player (Windows): improves player name detection 2026-09-20 00:50:01 +08:00
Carter Li efbfda9cf8 Doc: updates changelog [ci skip] 2026-09-19 18:34:32 +08:00