diff options
author | Ken Moore <ken@pcbsd.org> | 2014-10-15 14:00:30 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2014-10-15 14:00:30 -0400 |
commit | 1956d520dfb29c33ff0007297b4127dc83c00c9d (patch) | |
tree | d60a62ca77e8ac478e9d74c4c5101902a92ba251 | |
parent | Oops, add the default theme template to the Lumina build. Now users will actu... (diff) | |
download | lumina-1956d520dfb29c33ff0007297b4127dc83c00c9d.tar.gz lumina-1956d520dfb29c33ff0007297b4127dc83c00c9d.tar.bz2 lumina-1956d520dfb29c33ff0007297b4127dc83c00c9d.zip |
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).
-rw-r--r-- | lumina-desktop/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 <LuminaXDG.h> //from libLuminaUtils #include <LuminaThemes.h> +#include <LuminaOS.h> 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); |