From: tobtoht Date: Tue, 27 Feb 2024 18:12:36 +0000 (+0100) Subject: tails: fix detect X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=df35583cb68cd9b3d4c5910a933aea066584c65a;p=gamesguru%2Ffeather.git tails: fix detect --- diff --git a/src/utils/os/tails.cpp b/src/utils/os/tails.cpp index 78e00656..73d5603c 100644 --- a/src/utils/os/tails.cpp +++ b/src/utils/os/tails.cpp @@ -23,7 +23,9 @@ bool TailsOS::detect() QByteArray data = Utils::fileOpen("/etc/os-release"); QRegularExpression re("TAILS_PRODUCT_NAME=\"Tails\""); QRegularExpressionMatch os_match = re.match(data); - bool matched = os_match.hasMatch(); + + QRegularExpression re_6("NAME=\"Tails\""); + bool matched = os_match.hasMatch() || re_6.match(data).hasMatch(); if (matched) qDebug() << "Tails OS detected";