diff options
author | darealshinji <djcj@gmx.de> | 2015-03-30 18:22:28 +0200 |
---|---|---|
committer | darealshinji <djcj@gmx.de> | 2015-03-30 18:22:28 +0200 |
commit | 02e77b6616ababd187543cd80418a39bd2ba6ea0 (patch) | |
tree | c77480a88e12b67d29be6b61323379fbfb8642fb /lumina-desktop | |
parent | Tag version 0.8.3-release in prparation for branching the master tree. (diff) | |
download | lumina-02e77b6616ababd187543cd80418a39bd2ba6ea0.tar.gz lumina-02e77b6616ababd187543cd80418a39bd2ba6ea0.tar.bz2 lumina-02e77b6616ababd187543cd80418a39bd2ba6ea0.zip |
return the DE's version with 'Lumina-DE --version'
Diffstat (limited to 'lumina-desktop')
-rw-r--r-- | lumina-desktop/main.cpp | 6 |
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; |