diff options
Diffstat (limited to 'src/libcalamaresui/ViewManager.cpp')
-rw-r--r-- | src/libcalamaresui/ViewManager.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/libcalamaresui/ViewManager.cpp b/src/libcalamaresui/ViewManager.cpp index 7b5df155b..a4b628d0c 100644 --- a/src/libcalamaresui/ViewManager.cpp +++ b/src/libcalamaresui/ViewManager.cpp @@ -29,6 +29,7 @@ #include <QApplication> #include <QBoxLayout> +#include <QFile> #include <QMessageBox> #include <QMetaObject> @@ -187,6 +188,24 @@ ViewManager::onInstallationFailed( const QString& message, const QString& detail text += "<p>" + details + "</p>"; msgBox->setInformativeText( text ); + // parabola ISO bug report notice + if (QFile::exists("/home/parabola/Desktop/parabola-installer.desktop")) + { + QFile::copy(Logger::logFile(), "/home/parabola/Desktop/install.log"); + + text = "A file named 'install.log' has been placed on the desktop which could be "; + text += "useful in diagnosing the cause of this failure. The \"Report Bug\" "; + text += "button below will send the 'install.log' to Parabola anonymously."; + text += "If you would like to receive email regarding this issue, then you can "; + text += "open a bug report manually using your Parabola Bug Tracker account "; + text += "(the 'Report a Bug' desktop shortcut). Please note the 'Reason' given "; + text += "below and attach the 'install.log' file to the bug report."; + text += "<p>Reason:<br />" + message + "</p>"; + if ( !details.isEmpty() ) + text += "<p>Details:<br />" + details + "</p>"; + msgBox->setInformativeText( text ); + } + connect( msgBox, &QMessageBox::buttonClicked, qApp, &QApplication::quit ); cLog() << "Calamares will quit when the dialog closes."; msgBox->show(); |