--fixup=e8f13693be24559110b709a1778f58a71fabc37e

This commit is contained in:
uniartisan 2023-03-13 00:14:46 +08:00
parent ef41110632
commit fea69319de

@ -393,7 +393,11 @@ void AppIntoPage::notifyUserUnsupportedTags(bool ubuntuSupport, bool deepinSuppo
{
// 检查是否为 ubuntu 系统
QFile lsb("/etc/lsb-release");
if (lsb.open(QIODevice::ReadOnly) && lsb.readAll().contains("Ubuntu"))
if (!lsb.open(QIODevice::ReadOnly))
{
qDebug() << "打开 /etc/lsb-release 失败";
}
else if (lsb.readAll().contains("Ubuntu"))
{
isUbuntu = true;
lsb.close();