From 02e77b6616ababd187543cd80418a39bd2ba6ea0 Mon Sep 17 00:00:00 2001 From: darealshinji Date: Mon, 30 Mar 2015 18:22:28 +0200 Subject: return the DE's version with 'Lumina-DE --version' --- lumina-desktop/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lumina-desktop/main.cpp b/lumina-desktop/main.cpp index bd26e8f4..357fd14c 100644 --- a/lumina-desktop/main.cpp +++ b/lumina-desktop/main.cpp @@ -51,6 +51,12 @@ void MessageOutput(QtMsgType type, const QMessageLogContext &context, const QStr int main(int argc, char ** argv) { + if (argc > 1) { + if (QString(argv[1]) == QString("--version")){ + qDebug() << LUtils::LuminaDesktopVersion(); + return 0; + } + } if(!QFile::exists(LOS::LuminaShare())){ qDebug() << "Lumina does not appear to be installed correctly. Cannot find: " << LOS::LuminaShare(); return 1; -- cgit