From 55541c387c8096a941b6c007f97823d807967289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 26 Nov 2016 02:18:05 +0100 Subject: NOISSUE simplify system detection and user agent handling Now it only checks OS kernel name/version. User agent is 'MultiMC5/$version'. Kernel info is passed through custom dimensions in analytics. --- application/MultiMC.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'application') diff --git a/application/MultiMC.cpp b/application/MultiMC.cpp index 83bb731d..93f7a33f 100644 --- a/application/MultiMC.cpp +++ b/application/MultiMC.cpp @@ -1017,6 +1017,9 @@ MainWindow* MultiMC::showMainWindow(bool minimized) customValues["cd2"] = m_settings->get("JavaArchitecture"); customValues["cd3"] = Sys::isSystem64bit() ? "64":"32"; customValues["cd4"] = Sys::isCPU64bit() ? "64":"32"; + auto kernelInfo = Sys::getKernelInfo(); + customValues["cd5"] = kernelInfo.kernelName; + customValues["cd6"] = kernelInfo.kernelVersion; m_analytics->sendScreenView("Main Window", customValues); } return m_mainWindow; -- cgit v1.2.3