diff options
author | Ken Moore <ken@pcbsd.org> | 2015-01-28 11:43:31 -0500 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-01-28 11:43:31 -0500 |
commit | 4b93059ecb156cbc4d6fa5955c6ba5b76f205a26 (patch) | |
tree | e9229fa9590d5b7af5fc24eb331efbd6d9e57e30 /lumina-info/main.cpp | |
parent | Add a new function to all LuminaOS files: OSName() (diff) | |
download | lumina-4b93059ecb156cbc4d6fa5955c6ba5b76f205a26.tar.gz lumina-4b93059ecb156cbc4d6fa5955c6ba5b76f205a26.tar.bz2 lumina-4b93059ecb156cbc4d6fa5955c6ba5b76f205a26.zip |
Add a new utility: lumina-info
This utility provides basic information/links for the Lumina desktop project.
Diffstat (limited to 'lumina-info/main.cpp')
-rw-r--r-- | lumina-info/main.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lumina-info/main.cpp b/lumina-info/main.cpp new file mode 100644 index 00000000..3997eb21 --- /dev/null +++ b/lumina-info/main.cpp @@ -0,0 +1,27 @@ +#include <QApplication> +#include <QDebug> +#include <QFile> +#include <QStringList> + +#include "MainUI.h" +#include <LuminaOS.h> +#include <LuminaThemes.h> +#include <LuminaUtils.h> +#include <LuminaSingleApplication.h> + +int main(int argc, char ** argv) +{ + + LSingleApplication a(argc, argv, "lumina-info"); //loads translations inside constructor + if( !a.isPrimaryProcess()){ return 0; } + a.setApplicationName("About Lumina-DE"); + LuminaThemeEngine themes(&a); + + //Start the UI + MainUI w; + QObject::connect(&a, SIGNAL(InputsAvailable(QStringList)), &w, SLOT(slotSingleInstance()) ); + w.show(); + + int retCode = a.exec(); + return retCode; +} |