| 211 | } |
| 212 | |
| 213 | void ProgramInformation::getPackageInformation(std::stringstream& str) |
| 214 | { |
| 215 | #ifdef FC_CONDA |
| 216 | str << " Conda"; |
| 217 | #endif |
| 218 | #ifdef FC_FLATPAK |
| 219 | str << " Flatpak"; |
| 220 | #endif |
| 221 | auto sysenv = QProcessEnvironment::systemEnvironment(); |
| 222 | const QString appimage = sysenv.value(QStringLiteral("APPIMAGE")); |
| 223 | if (!appimage.isEmpty()) { |
| 224 | str << " AppImage"; |
| 225 | } |
| 226 | const QString snap = sysenv.value(QStringLiteral("SNAP_REVISION")); |
| 227 | if (!snap.isEmpty()) { |
| 228 | str << " Snap " << snap; |
| 229 | } |
| 230 | str << '\n'; |
| 231 | } |
| 232 | |
| 233 | void ProgramInformation::getVersionInformation( |
| 234 | const std::map<std::string, std::string>& mConfig, |