From b23d20719ba9a518d67e20ad66975e6c25b20cbe Mon Sep 17 00:00:00 2001 From: Loïc Bartoletti Date: Mon, 24 Sep 2018 23:40:38 +0200 Subject: init lumina-photo --- src-qt5/desktop-utils/lumina-photo/main.cpp | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src-qt5/desktop-utils/lumina-photo/main.cpp (limited to 'src-qt5/desktop-utils/lumina-photo/main.cpp') 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 +#include + +#include +#include +#include + +#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 (); +} -- cgit