-
-
Notifications
You must be signed in to change notification settings - Fork 797
Add Support for ENux #2391
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
base: dev
Are you sure you want to change the base?
Add Support for ENux #2391
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -297,12 +297,25 @@ FF_A_UNUSED static bool detectFedoraVariant(FFOSResult* result) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return false; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| FF_A_UNUSED static bool detectBedrock(FFOSResult* os) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| static bool detectBedrock(FFOSResult* os) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| const char* bedrockRestrict = getenv("BEDROCK_RESTRICT"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (bedrockRestrict && bedrockRestrict[0] == '1') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (bedrockRestrict && bedrockRestrict[0] == '1') | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return false; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (ffPathExists( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| FASTFETCH_TARGET_DIR_ROOT "/bedrock/strata/enux", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| FF_PATHTYPE_DIRECTORY) && | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| parseOsRelease( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| FASTFETCH_TARGET_DIR_ROOT "/bedrock/strata/enux/etc/os-release", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| os)) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return true; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return parseOsRelease(FASTFETCH_TARGET_DIR_ROOT "/bedrock/strata/bedrock/etc/os-release", os); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return parseOsRelease( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| FASTFETCH_TARGET_DIR_ROOT "/bedrock/strata/bedrock/etc/os-release", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| os); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+300
to
319
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ⚪ LOW RISK Nitpick: The function deviates from the project's preference for K&R style braces and mandatory braces for single-line
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| FF_A_UNUSED static void detectDeepinEnhancement(FFOSResult* result) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -152,6 +152,19 @@ static const FFlogo E[] = { | |
| .colorTitle = FF_COLOR_FG_DEFAULT, | ||
| }, | ||
| #endif | ||
| #ifdef FASTFETCH_DATATEXT_LOGO_ENUX | ||
| // ENux | ||
| { | ||
| .names = { "enux" }, | ||
| .lines = FASTFETCH_DATATEXT_LOGO_ENUX, | ||
| // ENux renders entirely black: logo, keys, and title. | ||
| .colors = { | ||
| FF_COLOR_FG_BLACK, | ||
| }, | ||
| .colorKeys = FF_COLOR_FG_BLACK, | ||
| .colorTitle = FF_COLOR_FG_BLACK, | ||
|
Comment on lines
+161
to
+165
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 MEDIUM RISK Suggestion: Using |
||
| }, | ||
| #endif | ||
| #ifdef FASTFETCH_DATATEXT_LOGO_ESHANIZEDOS | ||
| // EshanizedOS | ||
| { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| eeeeeeeeeeeeeeeeeeeeeeee | ||
| eeeeeeeeeeeeeeeeeeeeeeee | ||
| eeeee | ||
| eeeee | ||
| eeeee | ||
| eeeeeeeeeeeeeeeeeeeeeeee | ||
| eeeeeeeeeeeeeeeeeeeeeeee | ||
| eeeee | ||
| eeeee | ||
| eeeee | ||
| eeeeeeeeeeeeeeeeeeeeeeee | ||
| eeeeeeeeeeeeeeeeeeeeeeee |
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.
🟡 MEDIUM RISK
If the 'enux' directory exists but the 'os-release' file within it cannot be parsed, the function returns
falsewithout attempting to detect the base Bedrock system. This breaks the fallback mechanism. The detection should only return if it successfully finds OS information.Try running the following prompt in your coding agent: