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.
This commit is contained in:
Petr Mrázek committed 2018-03-13 00:28:51 +01:00
1 parent b497aee920
commit 82208be49e
10 files changed
+420 -1

No files matched your search

+9
View File
@@ -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;