From 4445e1e78d742b994546b80c6266305d12c7db92 Mon Sep 17 00:00:00 2001 From: berezka Date: Fri, 16 Jan 2026 21:18:17 +0100 Subject: [PATCH] Fix Bedrock Linux version detection & futureproof for 0.8 --- src/detection/os/os_linux.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/detection/os/os_linux.c b/src/detection/os/os_linux.c index 3377ec2a1..14c06a775 100644 --- a/src/detection/os/os_linux.c +++ b/src/detection/os/os_linux.c @@ -313,21 +313,7 @@ static bool detectBedrock(FFOSResult* os) { const char* bedrockRestrict = getenv("BEDROCK_RESTRICT"); if(bedrockRestrict && bedrockRestrict[0] == '1') return false; - if(parseOsRelease(FASTFETCH_TARGET_DIR_ROOT "/bedrock" FASTFETCH_TARGET_DIR_ETC "/bedrock-release", os)) - { - if(os->id.length == 0) - ffStrbufAppendS(&os->id, "bedrock"); - - if(os->name.length == 0) - ffStrbufAppendS(&os->name, "Bedrock"); - - if(os->prettyName.length == 0) - ffStrbufAppendS(&os->prettyName, "Bedrock Linux"); - - parseOsRelease("/bedrock" FASTFETCH_TARGET_DIR_ETC "/os-release", os); - return true; - } - return false; + return parseOsRelease(FASTFETCH_TARGET_DIR_ROOT "/bedrock/strata/bedrock/etc/os-release", os); } static void detectOS(FFOSResult* os)