diff options
Diffstat (limited to 'lumina-config/main.cpp')
-rw-r--r-- | lumina-config/main.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/lumina-config/main.cpp b/lumina-config/main.cpp index 27af600d..af5c0ab9 100644 --- a/lumina-config/main.cpp +++ b/lumina-config/main.cpp @@ -1,25 +1,19 @@ #include <QTranslator> -#ifdef __FreeBSD__ - #include <qtsingleapplication.h> -#endif -#include <QtGui/QApplication> +#include <QApplication> #include <QDebug> #include <QFile> #include "mainUI.h" #include <LuminaOS.h> #include <LuminaThemes.h> +#include <LuminaSingleApplication.h> int main(int argc, char ** argv) { - #ifndef __FreeBSD__ - QApplication a(argc, argv); - #else - QtSingleApplication a(argc, argv); - if( a.isRunning() ) - return !(a.sendMessage("show")); - #endif + LSingleApplication a(argc, argv); + if(!a.isPrimaryProcess()){ return 0; } + LuminaThemeEngine theme(&a); QTranslator translator; QLocale mylocale; @@ -32,7 +26,7 @@ int main(int argc, char ** argv) MainUI w; - QObject::connect(&a, SIGNAL(messageReceived(const QString&)), &w, SLOT(slotSingleInstance()) ); + QObject::connect(&a, SIGNAL(InputsAvailable(QStringList)), &w, SLOT(slotSingleInstance()) ); QObject::connect(&theme, SIGNAL(updateIcons()), &w, SLOT(setupIcons()) ); w.show(); |