MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / getPackageInformation

Method getPackageInformation

src/App/ProgramInformation.cpp:213–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213void 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
233void ProgramInformation::getVersionInformation(
234 const std::map<std::string, std::string>& mConfig,

Callers

nothing calls this directly

Calls 2

valueMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected