Skip to content

Commit

Permalink
Removing display check for macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvorka committed Oct 2, 2018
1 parent 2921567 commit 1ff472a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/src/qt/mindforger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,15 @@ using namespace std;
int main(int argc, char *argv[])
{
// check whether running in GUI (and not in text console tty)
#ifndef __APPLE__
char *term = getenv(m8r::ENV_VAR_DISPLAY);
if(!term || !strlen(term)) {
cerr << endl << QCoreApplication::translate("main", "MindForger CANNOT be run from text console - run it from a terminal in GUI.").toUtf8().constData()
cerr << endl << QCoreApplication::translate("main", "MindForger CANNOT be run from text console - set DISPLAY environment variable or run MindForger from GUI.").toUtf8().constData()
<< endl;
exit(1);
}
// default terminal macOS environment: TERM=xterm-256color DISPLAY=
#endif

// stupid & ugly reused code as macOS requires to pass --disable-web-security parameter to QApplication
// so that it allows loading of images by QWebEngine
Expand Down
2 changes: 1 addition & 1 deletion build/debian/debian-aptly-add-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ echo "See 'MindForger Release Guide#Debian and my PPA' notebook for detailed ste
#aptly snapshot list

# delete snapshot(s) ONLY if needed - publish must be deleted first!
#aptly snapshot drop mf-test-snapshot
#aptly snapshot drop mindforger-1.46.0-snapshot

# create snapshot in the time of release - note release NAME
#aptly snapshot create mindforger-1.47.0-snapshot from repo mindforger-com-ppa
Expand Down

0 comments on commit 1ff472a

Please sign in to comment.