mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-07-12 08:32:21 +08:00
--fixup=e8f13693be24559110b709a1778f58a71fabc37e
This commit is contained in:
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user