Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Gallien <matthieu_gallien@yahoo.fr>2021-05-03 16:57:12 +0300
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>2021-05-06 12:32:09 +0300
commit86dda5675f6e4153835e83b522f21a976b8ca93d (patch)
treec1b6d87f08c44f79295db88b9dc531add2e4040a /src/gui/updater
parent8f7646d93fe8eea19ceacccf92045bfd77e0dd87 (diff)
send OS name and version to auto updater to allow selective upgrades
in order to be able to suuport legacy OS, also sends the OS name and version will be used to detect Windows 8.1 and similar legacy versions Signed-off-by: Matthieu Gallien <matthieu_gallien@yahoo.fr>
Diffstat (limited to 'src/gui/updater')
-rw-r--r--src/gui/updater/updater.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/updater/updater.cpp b/src/gui/updater/updater.cpp
index 0774dd6a7..21fd48b09 100644
--- a/src/gui/updater/updater.cpp
+++ b/src/gui/updater/updater.cpp
@@ -28,6 +28,8 @@
#include "config.h"
#include "configfile.h"
+#include <QSysInfo>
+
namespace OCC {
Q_LOGGING_CATEGORY(lcUpdater, "nextcloud.gui.updater", QtInfoMsg)
@@ -88,6 +90,9 @@ QUrlQuery Updater::getQueryParams()
}
query.addQueryItem(QStringLiteral("version"), clientVersion());
query.addQueryItem(QStringLiteral("platform"), platform);
+ query.addQueryItem(QStringLiteral("osRelease"), QSysInfo::productType());
+ query.addQueryItem(QStringLiteral("osVersion"), QSysInfo::productVersion());
+ query.addQueryItem(QStringLiteral("kernelVersion"), QSysInfo::kernelVersion());
query.addQueryItem(QStringLiteral("oem"), theme->appName());
query.addQueryItem(QStringLiteral("buildArch"), QSysInfo::buildCpuArchitecture());
query.addQueryItem(QStringLiteral("currentArch"), QSysInfo::currentCpuArchitecture());