Imported from upstream pull request fastfetch-cli#2391: fastfetch-cli#2391
Original author: @ENux-Distro
Original state: OPEN
Original labels: none
Original assignees: none
Add Support for ENux
What this does
- Adds a builtin ASCII logo for ENux (
src/logo/ascii/e/enux.txt) and registers it
in src/logo/ascii/e.inc under the name enux. The logo, module keys, and title
all render in black (FF_COLOR_FG_BLACK), matching ENux's all-black branding.
- The logo is auto-selected by OS
ID, so no extra wiring is needed: when
/etc/os-release reports ID=enux, fastfetch picks this logo automatically.
How ENux is detected
ENux ships with Bedrock Linux pre-integrated, so the OS-release lookup needed a patch
in detectBedrock() (src/detection/os/os_linux.c). On a Bedrock system the default
os-release comes from the bedrock stratum, which would make fastfetch report
"Bedrock" instead of the actual distro. The patched logic checks for the enux stratum
first and reads its os-release when present:
if (ffPathExists(".../bedrock/strata/enux", FF_PATHTYPE_DIRECTORY))
return parseOsRelease(".../bedrock/strata/enux/etc/os-release", os);
// otherwise fall back to the bedrock stratum
return parseOsRelease(".../bedrock/strata/bedrock/etc/os-release", os);
This makes fastfetch report ENux (ID=enux) on a Bedrock-based ENux install, which in
turn triggers the ENux logo.
Imported from upstream pull request fastfetch-cli#2391: fastfetch-cli#2391
Original author: @ENux-Distro
Original state: OPEN
Original labels: none
Original assignees: none
Add Support for ENux
What this does
src/logo/ascii/e/enux.txt) and registers itin
src/logo/ascii/e.incunder the nameenux. The logo, module keys, and titleall render in black (
FF_COLOR_FG_BLACK), matching ENux's all-black branding.ID, so no extra wiring is needed: when/etc/os-releasereportsID=enux, fastfetch picks this logo automatically.How ENux is detected
ENux ships with Bedrock Linux pre-integrated, so the OS-release lookup needed a patch
in
detectBedrock()(src/detection/os/os_linux.c). On a Bedrock system the defaultos-releasecomes from thebedrockstratum, which would make fastfetch report"Bedrock" instead of the actual distro. The patched logic checks for the
enuxstratumfirst and reads its
os-releasewhen present:This makes fastfetch report ENux (
ID=enux) on a Bedrock-based ENux install, which inturn triggers the ENux logo.