From 82208be49eecc07f9c6a38365876c28273529192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 11 Mar 2018 23:00:54 +0100 Subject: NOISSUE add linux distro name and release stats to analytics Hopefully this can serve as some sort of guideline for focusing effort towards the right distro packages to make. --- application/MultiMC.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'application') diff --git a/application/MultiMC.cpp b/application/MultiMC.cpp index f928d11b..230d757f 100644 --- a/application/MultiMC.cpp +++ b/application/MultiMC.cpp @@ -1156,6 +1156,15 @@ MainWindow* MultiMC::showMainWindow(bool minimized) auto kernelInfo = Sys::getKernelInfo(); customValues["cd5"] = kernelInfo.kernelName; customValues["cd6"] = kernelInfo.kernelVersion; + auto distInfo = Sys::getDistributionInfo(); + if(!distInfo.distributionName.isEmpty()) + { + customValues["cd7"] = distInfo.distributionName; + } + if(!distInfo.distributionVersion.isEmpty()) + { + customValues["cd8"] = distInfo.distributionVersion; + } m_analytics->sendScreenView("Main Window", customValues); } return m_mainWindow; -- cgit v1.2.3