Skip to content

[Upstream PR] Add Support for ENux #51

Description

@victorbash400

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstream-importCopied from the upstream repository.upstream-prCopied from an upstream pull request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions