diff -r fe839bdfd10c -r 6cbf3c9cbd21 mainwindow.cpp --- a/mainwindow.cpp Tue Jul 07 11:21:27 2009 +0000 +++ b/mainwindow.cpp Wed Jul 22 11:48:23 2009 +0000 @@ -1,6 +1,5 @@ #include "mainwindow.h" -#include #include #include @@ -38,6 +37,7 @@ extern TextEditor *textEditor; extern Main *mainWindow; +extern QDBusConnection dbusConnection; extern QString tmpVymDir; extern QString clipboardDir; extern QString clipboardFile; @@ -229,6 +229,14 @@ updateGeometry(); + //Initialize DBUS + new Adaptor (this); + dbusConnection = QDBusConnection::sessionBus(); + dbusConnection.registerObject("/MainWindow", this); + dbusConnection.registerService("org.insilmaril.vym"); + + + } Main::~Main()