mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 19:49:28 +00:00
tails: fix detect
This commit is contained in:
parent
c6737df553
commit
df35583cb6
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,9 @@ bool TailsOS::detect()
|
||||||
QByteArray data = Utils::fileOpen("/etc/os-release");
|
QByteArray data = Utils::fileOpen("/etc/os-release");
|
||||||
QRegularExpression re("TAILS_PRODUCT_NAME=\"Tails\"");
|
QRegularExpression re("TAILS_PRODUCT_NAME=\"Tails\"");
|
||||||
QRegularExpressionMatch os_match = re.match(data);
|
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)
|
if (matched)
|
||||||
qDebug() << "Tails OS detected";
|
qDebug() << "Tails OS detected";
|
||||||
|
|
Loading…
Reference in a new issue