-
-
Notifications
You must be signed in to change notification settings - Fork 635
Add HarmonyOS support #1804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add HarmonyOS support #1804
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces HarmonyOS support by adding a new builtin logo and extending OS detection logic. Key changes include:
- Adding a HarmonyOS logo configuration entry in the builtin logos.
- Adding an ASCII art file for HarmonyOS.
- Extending the Linux OS detection to set HarmonyOS details based on uname output.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/logo/builtin.c | Adds HarmonyOS logo configuration. |
| src/logo/ascii/harmonyos.txt | Adds the ASCII art logo for HarmonyOS. |
| src/detection/os/os_linux.c | Adds HarmonyOS detection logic based on uname info. |
Co-authored-by: Copilot <[email protected]>
|
HarmonyOS is Unix based? |
Yes, |
|
@BA489 Do they give different unames? |
|
Is this Termony on OH (not NEXT)? I mean the names from Orino,
Linux/Lite* based OH -- are they using non-HMKernal unames? Link to
gitee source can help as well. I have two mobile NEXT devices and they
give the same unames in hdc shell as a HMPC does.
Am Di., 19. Aug. 2025 um 22:19 Uhr schrieb BA489 ***@***.***>:
…
BA489 left a comment (fastfetch-cli/fastfetch#1804)
@BA489 Do they give different unames?
image.png (view on web) Yes
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
New builtin logo
Detect
HarmonyOS has no os-release file, so I use the
uname -svalue. Haven't tested on a real machine as I don't have one, but I think it should work. Below is uname information on HarmonyOS NEXT 5.0.1.120.$ uname -a HarmonyOS localhost HongMeng Kernel 1.9.3 #1 SMP Tue May 6 01:52:44 UTC 2025 aarch64