summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 278d754..c9b9e30 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -19,17 +19,12 @@
Improvements and feedback are welcome!
*******************************************************************************/
-// TQt
-#include <tqdbusconnection.h>
-
// TDE
-#include <kuniqueapplication.h>
#include <tdeaboutdata.h>
#include <tdecmdlineargs.h>
-#include <tdelocale.h>
// Portal
-#include "portal_service.h"
+#include "portal_daemon.h"
static const char description[] = I18N_NOOP("TDE XDG desktop portal");
@@ -48,17 +43,8 @@ int main(int argc, char **argv)
if (!KUniqueApplication::start())
return 0;
- KUniqueApplication app;
-
- TQT_DBusConnection connection = TQT_DBusConnection::sessionBus();
- if (!connection.isConnected())
- tqFatal("Failed to connect to session bus!");
-
- if (!connection.requestName("org.freedesktop.impl.portal.desktop.tde"))
- tqFatal("Failed to register XDG portal service!");
-
- TDEPortalService portal(connection);
-
+ PortalDaemon app;
+ app.disableSessionManagement();
return app.exec();
}