diff options
author | Petr Mrázek <peterix@gmail.com> | 2018-03-11 23:00:54 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2018-03-13 00:28:51 +0100 |
commit | 82208be49eecc07f9c6a38365876c28273529192 (patch) | |
tree | f900b2acfc8f205208be4cc97abe3e3f4b109c20 /application | |
parent | b497aee9201541459cef41a68f572f9aed2d1dbb (diff) | |
download | PrismLauncher-82208be49eecc07f9c6a38365876c28273529192.tar.gz PrismLauncher-82208be49eecc07f9c6a38365876c28273529192.tar.bz2 PrismLauncher-82208be49eecc07f9c6a38365876c28273529192.zip |
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.
Diffstat (limited to 'application')
-rw-r--r-- | application/MultiMC.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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; |