2019-06-03 14:41:23 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
|
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
*/
|
|
|
|
#include "platform/linux/info_linux.h"
|
|
|
|
|
|
|
|
namespace Platform {
|
|
|
|
|
|
|
|
QString DeviceModelPretty() {
|
|
|
|
#ifdef Q_OS_LINUX64
|
|
|
|
return "PC 64bit";
|
|
|
|
#else // Q_OS_LINUX64
|
|
|
|
return "PC 32bit";
|
|
|
|
#endif // Q_OS_LINUX64
|
|
|
|
}
|
|
|
|
|
|
|
|
QString SystemVersionPretty() {
|
|
|
|
const auto result = getenv("XDG_CURRENT_DESKTOP");
|
|
|
|
const auto value = result ? QString::fromLatin1(result) : QString();
|
|
|
|
const auto list = value.split(':', QString::SkipEmptyParts);
|
|
|
|
return list.isEmpty() ? "Linux" : "Linux " + list[0];
|
|
|
|
}
|
|
|
|
|
|
|
|
QString SystemCountry() {
|
|
|
|
return QString();
|
|
|
|
}
|
|
|
|
|
|
|
|
QString SystemLanguage() {
|
|
|
|
return QString();
|
|
|
|
}
|
|
|
|
|
2019-06-03 22:34:34 +00:00
|
|
|
QDate WhenSystemBecomesOutdated() {
|
|
|
|
return QDate();
|
|
|
|
}
|
|
|
|
|
2019-06-03 14:41:23 +00:00
|
|
|
} // namespace Platform
|