Skip to content

[FEAT] Don't detect Bedrock linux when ran restricted #1881

@netkv

Description

@netkv

Description

When ran with bedrock's linux strata restrict option (like strat -r void fastfetch) fastfetch shouldn't try to detect Bedrock.
It also shouldn't detect package managers from other strata (client distros on top of bedrock linux)

Image

Motivation

Neofetch works in this way, would be nice to have fastfetch do the same.

Additional context

i am not familiar with fastfetch's code much, but should be trivial ig

this is the piece of code neofetch uses to detect bedrock
if [[ -f /bedrock/etc/bedrock-release && -z $BEDROCK_RESTRICT ]]; then
iirc fastfetch also uses the file, but doesn't check BEDROCK_RESTRICT env, which is empty when not restricted and 1 when restricted

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions