diff options
author | Ken Moore <ken@ixsystems.com> | 2018-11-12 08:40:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-12 08:40:43 -0500 |
commit | 5bcc42fad54ed70469877b5a74becdf792ecdcea (patch) | |
tree | 4bded7bcc733abef2ec9eebd63e6fa965feac198 /src-qt5/desktop-utils/lumina-photo/main.cpp | |
parent | Merge pull request #634 from lbartoletti/new_folder (diff) | |
parent | q5sys review: (diff) | |
download | lumina-5bcc42fad54ed70469877b5a74becdf792ecdcea.tar.gz lumina-5bcc42fad54ed70469877b5a74becdf792ecdcea.tar.bz2 lumina-5bcc42fad54ed70469877b5a74becdf792ecdcea.zip |
Merge pull request #626 from lbartoletti/lumina-photo
New desktop utils: lumina-photo
Diffstat (limited to 'src-qt5/desktop-utils/lumina-photo/main.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-photo/main.cpp | 42 |
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 (); +} |