Init checking of the existing sessions
This commit is contained in:
1 parent
cacc8c873f
commit
6508a93e86
2 files changed
+20
-10
No files matched your search
+17
-7
@@ -22,8 +22,9 @@
|
||||
* \brief main file
|
||||
*/
|
||||
|
||||
#include <QApplication>
|
||||
#include "config.h"
|
||||
#include <QApplication>
|
||||
#include <QDBusInterface>
|
||||
#include "plaYUVerApp.h"
|
||||
#include "SubWindowHandle.h"
|
||||
#ifdef USE_FERVOR
|
||||
@@ -38,15 +39,24 @@ using namespace plaYUVer;
|
||||
|
||||
int main( int argc, char *argv[] )
|
||||
{
|
||||
QApplication a( argc, argv );
|
||||
QApplication::setApplicationName("PlaYUVer");
|
||||
QApplication::setApplicationVersion(PLAYUVER_VERSION_STRING);
|
||||
QApplication::setOrganizationName("pixlra");
|
||||
QApplication::setOrganizationDomain("playuver.pixlra");
|
||||
|
||||
qRegisterMetaType<PlaYUVerStreamInfoVector>("PlaYUVerStreamInfoVector");
|
||||
qRegisterMetaTypeStreamOperators<PlaYUVerStreamInfoVector>("PlaYUVerStreamInfoVector");
|
||||
|
||||
QApplication a( argc, argv );
|
||||
QApplication::setApplicationName( "PlaYUVer" );
|
||||
QApplication::setApplicationVersion( PLAYUVER_VERSION_STRING );
|
||||
QApplication::setOrganizationName( "pixlra" );
|
||||
QApplication::setOrganizationDomain( "playuver.pixlra" );
|
||||
|
||||
/**
|
||||
* use dbus, if available
|
||||
* allows for resuse of running Kate instances
|
||||
*/
|
||||
if( QDBusConnectionInterface * const sessionBusInterface = QDBusConnection::sessionBus().interface() )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
plaYUVerApp w;
|
||||
w.show();
|
||||
w.parseArgs( argc, argv );
|
||||
|
||||
Reference in new issue
Block a user