From 1956d520dfb29c33ff0007297b4127dc83c00c9d Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 15 Oct 2014 14:00:30 -0400 Subject: Add a quick check to the Lumina init routine: Have it check for the Lumina share directory and quit if it is not found (improper installation). --- lumina-desktop/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lumina-desktop') diff --git a/lumina-desktop/main.cpp b/lumina-desktop/main.cpp index fa23680b..56071835 100644 --- a/lumina-desktop/main.cpp +++ b/lumina-desktop/main.cpp @@ -21,6 +21,7 @@ #include //from libLuminaUtils #include +#include QFile logfile(QDir::homePath()+"/.lumina/logs/runtime.log"); void MessageOutput(QtMsgType type, const char *msg){ @@ -47,6 +48,10 @@ void MessageOutput(QtMsgType type, const char *msg){ int main(int argc, char ** argv) { + if(!QFile::exists(LOS::LuminaShare())){ + qDebug() << "Lumina does not appear to be installed correctly. Cannot find: " << LOS::LuminaShare(); + return 1; + } //Setup any pre-QApplication initialization values LXDG::setEnvironmentVars(); setenv("DESKTOP_SESSION","LUMINA",1); -- cgit