aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-photo/main.cpp
diff options
context:
space:
mode:
authorLoïc Bartoletti <loic.bartoletti@oslandia.com>2018-09-24 23:40:38 +0200
committerLoïc Bartoletti <loic.bartoletti@oslandia.com>2018-09-25 22:23:12 +0200
commitb23d20719ba9a518d67e20ad66975e6c25b20cbe (patch)
treeb613b7380b4dbab6ce480d860e10e16941e5fbc9 /src-qt5/desktop-utils/lumina-photo/main.cpp
parentMerge pull request #622 from chenliangomc/master (diff)
downloadlumina-b23d20719ba9a518d67e20ad66975e6c25b20cbe.tar.gz
lumina-b23d20719ba9a518d67e20ad66975e6c25b20cbe.tar.bz2
lumina-b23d20719ba9a518d67e20ad66975e6c25b20cbe.zip
init lumina-photo
Diffstat (limited to 'src-qt5/desktop-utils/lumina-photo/main.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-photo/main.cpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-photo/main.cpp b/src-qt5/desktop-utils/lumina-photo/main.cpp
new file mode 100644
index 00000000..faf919be
--- /dev/null
+++ b/src-qt5/desktop-utils/lumina-photo/main.cpp
@@ -0,0 +1,42 @@
+//===========================================
+// Lumina-DE source code
+// Copyright (c) 2016, Ken Moore
+// Available under the 3-clause BSD license
+// See the LICENSE file for full details
+//===========================================
+#include <QApplication>
+#include <QDebug>
+
+#include <LUtils.h>
+#include <LuminaSingleApplication.h>
+#include <LuminaThemes.h>
+
+#include "mainUI.h"
+
+int main (int argc, char *argv[])
+{
+ LTHEME::LoadCustomEnvSettings ();
+ LSingleApplication a (argc, argv, "l-photo");
+ if (!a.isPrimaryProcess ())
+ {
+ return 0;
+ }
+ // Now go ahead and setup the app
+ QStringList args;
+ for (int i = 1; i < argc; i++)
+ {
+ if (QString (argv[i]).startsWith ("--"))
+ {
+ args << QString (argv[i]);
+ }
+ else
+ {
+ args << LUtils::PathToAbsolute (QString (argv[i]));
+ }
+ }
+ // Now start the window
+ MainUI W;
+ W.loadArguments (args);
+ W.show ();
+ return a.exec ();
+}
bgstack15