GH-1665 attempt at workaround for MultiMC not starting on macOS Sierra

This tries to detect the issue and instructs the user to fix it by
moving the application to /Applications or ~/Applications.

In addition, several other previously poorly handled fatal errors
now show an error dialog.
This commit is contained in:
Petr Mrázek
2017-01-14 15:47:58 +01:00
parent 3e81e2cb5b
commit a6ef0059cc
2 changed files with 54 additions and 10 deletions

View File

@ -50,6 +50,8 @@ public:
enum Status
{
StartingUp,
UnwritableLog,
FailedShowError,
Failed,
Succeeded,
Initialized
@ -172,7 +174,7 @@ private slots:
void setupWizardFinished(int status);
private:
void initLogger();
bool initLogger();
void shutdownLogger();
void initIcons();
void initThemes();
@ -186,6 +188,9 @@ private:
void shutdownAnalytics();
void performMainStartupAction();
// sets the fatal error message and m_status to Failed.
void showFatalErrorMessage(const QString & title, const QString & content);
private:
QDateTime startTime;