tails: fix detection

This commit is contained in:
tobtoht 2024-02-28 15:58:06 +01:00
parent dc3441f258
commit e956b4ff15
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -14,7 +14,7 @@ bool TailsOS::detect()
return false; return false;
QByteArray data = fileOpen("/etc/os-release"); QByteArray data = fileOpen("/etc/os-release");
QRegularExpression re("TAILS_PRODUCT_NAME=\"Tails\""); QRegularExpression re("NAME=\"Tails\"");
QRegularExpressionMatch os_match = re.match(data); QRegularExpressionMatch os_match = re.match(data);
bool matched = os_match.hasMatch(); bool matched = os_match.hasMatch();