mirror of
https://github.com/monero-project/monero-gui
synced 2024-11-27 09:53:38 +01:00
tails: fix detection
This commit is contained in:
parent
dc3441f258
commit
e956b4ff15
@ -14,7 +14,7 @@ bool TailsOS::detect()
|
||||
return false;
|
||||
|
||||
QByteArray data = fileOpen("/etc/os-release");
|
||||
QRegularExpression re("TAILS_PRODUCT_NAME=\"Tails\"");
|
||||
QRegularExpression re("NAME=\"Tails\"");
|
||||
QRegularExpressionMatch os_match = re.match(data);
|
||||
bool matched = os_match.hasMatch();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user