fixes #0002987: FreeCAD should recognize when it's been built as an appimage

This commit is contained in:
wmayer
2018-02-12 22:21:38 +01:00
parent 5d07c271ee
commit eddf262e3c

View File

@@ -23,6 +23,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <cstdlib>
# include <QApplication>
# include <QClipboard>
# include <QDesktopServices>
@@ -720,7 +721,12 @@ void AboutDialog::on_copyButton_clicked()
str << "Word size of OS: " << wordSize << "-bit" << endl;
}
str << "Word size of " << exe << ": " << QSysInfo::WordSize << "-bit" << endl;
str << "Version: " << major << "." << minor << "." << build << endl;
str << "Version: " << major << "." << minor << "." << build;
char *appimage = getenv("APPIMAGE");
if (appimage)
str << " AppImage";
str << endl;
#if defined(_DEBUG) || defined(DEBUG)
str << "Build type: Debug" << endl;
#elif defined(NDEBUG)