diff options
author | Ken Moore <moorekou@gmail.com> | 2015-03-30 12:25:11 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-03-30 12:25:11 -0400 |
commit | 3e9e0b8e179a17a2ae084c7b3ecc3b44792559a1 (patch) | |
tree | d62a9fb345ea2dcf55116c205034ab9c3d256645 | |
parent | Update README.md (diff) | |
parent | return the DE's version with 'Lumina-DE --version' (diff) | |
download | lumina-3e9e0b8e179a17a2ae084c7b3ecc3b44792559a1.tar.gz lumina-3e9e0b8e179a17a2ae084c7b3ecc3b44792559a1.tar.bz2 lumina-3e9e0b8e179a17a2ae084c7b3ecc3b44792559a1.zip |
Merge pull request #82 from darealshinji/patch-1
return the DE's version with 'Lumina-DE --version'
-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; |