52 static const auto osReleaseFile = QStringLiteral (
"/etc/os-release");
53 if (!QFile::exists (osReleaseFile))
56 const QSettings relFile { osReleaseFile, QSettings::IniFormat };
57 const auto& prettyName = relFile.value (QStringLiteral (
"PRETTY_NAME")).toString ();
58 const auto& name = relFile.value (QStringLiteral (
"NAME")).toString ();
59 const auto& version = relFile.value (QStringLiteral (
"VERSION")).toString ();
60 return !prettyName.isEmpty () ? prettyName : (name +
" " + version);