diff options
author | Ken Moore <ken@pcbsd.org> | 2015-03-25 12:45:49 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-03-25 12:45:49 -0400 |
commit | 2a43d04950e1c7c364b03fe5552e2d687b8845b0 (patch) | |
tree | 6abb976c9a43a67a9744833df2ea3fe79db9330b /lumina-wm/main.cpp | |
parent | Add a new information file: DeveloperGuidelines.txt (diff) | |
download | lumina-2a43d04950e1c7c364b03fe5552e2d687b8845b0.tar.gz lumina-2a43d04950e1c7c364b03fe5552e2d687b8845b0.tar.bz2 lumina-2a43d04950e1c7c364b03fe5552e2d687b8845b0.zip |
Add my "work-in-progress" on lumina-wm (screensaver implementation so far) to GIt. This is *not* ready to be built, much less used yet.
Diffstat (limited to 'lumina-wm/main.cpp')
-rw-r--r-- | lumina-wm/main.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/lumina-wm/main.cpp b/lumina-wm/main.cpp new file mode 100644 index 00000000..b19b00e3 --- /dev/null +++ b/lumina-wm/main.cpp @@ -0,0 +1,40 @@ +//=========================================== +// Lumina-DE source code +// Copyright (c) 2015, Ken Moore +// Available under the 3-clause BSD license +// See the LICENSE file for full details +//=========================================== +#include <QDebug> + +#include <QFile> +#include <QDir> +#include <QString> +#include <QTextStream> +#include <QUrl> + + +#include "WMSession.h" + +#include <LuminaXDG.h> //from libLuminaUtils +#include <LuminaThemes.h> +#include <LuminaSingleApplication.h> + +//#define DEBUG 0 + +int main(int argc, char ** argv) +{ + LSingleApplication a(argc, argv, "lumina-wm"); + if(!a.isPrimaryProcess()){ return 0; } //Inputs forwarded on to the primary already + LuminaThemeEngine themes(&a); + + //Setup the special settings prefix location + QSettings::setPath(QSettings::NativeFormat, QSettings::UserScope, QDir::homePath()+"/.lumina"); + + WMSession w; + w.start(); + QObject::connect(themes, SIGNAL(updateIcons()), &w, SLOT(reloadIcons()) ); + QObject::connect(a, SIGNAL(InputsAvailable(QStringList)), &w, SLOT(newInputsAvailable(QStringList)) ); + int retCode = a.exec(); + + return retCode; +} |