From df35583cb68cd9b3d4c5910a933aea066584c65a Mon Sep 17 00:00:00 2001 From: tobtoht Date: Tue, 27 Feb 2024 19:12:36 +0100 Subject: [PATCH] tails: fix detect --- src/utils/os/tails.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/os/tails.cpp b/src/utils/os/tails.cpp index 78e0065..73d5603 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";