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:
@ -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;
|
||||
|
Reference in New Issue
Block a user