]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
tails: fix detect
authortobtoht <tob@featherwallet.org>
Tue, 27 Feb 2024 18:12:36 +0000 (19:12 +0100)
committertobtoht <tob@featherwallet.org>
Tue, 27 Feb 2024 18:12:36 +0000 (19:12 +0100)
src/utils/os/tails.cpp

index 78e0065684f12fbe3ac690214c9ae242b16990e8..73d5603c8eac12c9ae4ae8b3e86fa924606f61b6 100644 (file)
@@ -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";