aboutsummaryrefslogtreecommitdiff
path: root/lumina-info/main.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-01-28 11:43:31 -0500
committerKen Moore <ken@pcbsd.org>2015-01-28 11:43:31 -0500
commit4b93059ecb156cbc4d6fa5955c6ba5b76f205a26 (patch)
treee9229fa9590d5b7af5fc24eb331efbd6d9e57e30 /lumina-info/main.cpp
parentAdd a new function to all LuminaOS files: OSName() (diff)
downloadlumina-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.cpp27
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;
+}
bgstack15