diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2017-12-16 03:01:09 -0500 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2018-05-27 06:26:01 -0400 |
commit | e2e074c4bef7991845902e27f620292d9a5bf631 (patch) | |
tree | 9cf17eb2d615273e4827dcb3533e538035098fd6 | |
parent | fb9bf4815bc34df6dfea5ac39f7b2c119f4f22df (diff) |
add bug report notice to fail messagebox
-rwxr-xr-x | mk | 12 | ||||
-rw-r--r-- | src/libcalamaresui/ViewManager.cpp | 25 | ||||
-rw-r--r-- | src/modules/pacstrap-gui/pacstrap-gui.conf | 2 |
3 files changed, 33 insertions, 6 deletions
@@ -41,12 +41,12 @@ fi print "\n--- running cmake ---\n" cd ./build -cmake -DCMAKE_BUILD_TYPE=Debug \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib \ - -DSKIP_MODULES="dracut dracutlukscfg dummycpp dummyprocess dummypython \ - dummypythonqt grubcfg initramfs initramfscfg tracking \ - interactiveterminal license plymouthcfg removeuser webview" .. +cmake -DCMAKE_BUILD_TYPE=Debug \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DSKIP_MODULES="dracut dracutlukscfg dummycpp dummyprocess dummypython \ + dummypythonqt initramfs initramfscfg interactiveterminal \ + license plymouthcfg removeuser tracking webview" .. if [ -d /usr/share/calamares/ -o -f /usr/bin/calamares ] diff --git a/src/libcalamaresui/ViewManager.cpp b/src/libcalamaresui/ViewManager.cpp index 7b5df155b..45d7e38da 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,30 @@ 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 "; +#ifndef NYI // TODO: + text += "useful in diagnosing the cause of this failure. "; + text += "You can open a bug report by logging into the Parabola Bug Tracker "; + text += "(the 'Report a Bug' desktop shortcut). If you do file a bug report, "; +#else // NYI + 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 += "(the 'Report a Bug' desktop shortcut). If you do file a bug report manually, "; +#endif // NYI + text += "please include the 'Reason' given below in the bug report description; "; + text += "and use the \"Choose Files\" button to attach the 'install.log' file."; + 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(); diff --git a/src/modules/pacstrap-gui/pacstrap-gui.conf b/src/modules/pacstrap-gui/pacstrap-gui.conf index 07f1f98da..62f09a8ac 100644 --- a/src/modules/pacstrap-gui/pacstrap-gui.conf +++ b/src/modules/pacstrap-gui/pacstrap-gui.conf @@ -34,6 +34,8 @@ look-and-feel: utilities: - "dmidecode" - "gvfs" + - "gxmessage" + - "wbar" x-server: - "ttf-dejavu" |