aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarealshinji <djcj@gmx.de>2015-03-30 18:22:28 +0200
committerdarealshinji <djcj@gmx.de>2015-03-30 18:22:28 +0200
commit02e77b6616ababd187543cd80418a39bd2ba6ea0 (patch)
treec77480a88e12b67d29be6b61323379fbfb8642fb
parentTag version 0.8.3-release in prparation for branching the master tree. (diff)
downloadlumina-02e77b6616ababd187543cd80418a39bd2ba6ea0.tar.gz
lumina-02e77b6616ababd187543cd80418a39bd2ba6ea0.tar.bz2
lumina-02e77b6616ababd187543cd80418a39bd2ba6ea0.zip
return the DE's version with 'Lumina-DE --version'
-rw-r--r--lumina-desktop/main.cpp6
1 files changed, 6 insertions, 0 deletions
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;
bgstack15