freebsd-ports/x11/sddm/files/patch-src_daemon_DaemonApp.cpp
Adriaan de Groot 2d4534668d Update x11/sddm to 0.17.
This is still one minor release behind, but a big update relative to
the previous version. Thanks to tijl@ for the patches, dbn@ for
initial testing.

PR:		228116
Submitted by:	tijl
2018-09-08 10:28:11 +00:00

22 lines
686 B
C++

On FreeBSD console-kit-daemon isn't started by the init system, so try to
start it from sddm.
--- src/daemon/DaemonApp.cpp.orig 2017-12-05 16:00:16 UTC
+++ src/daemon/DaemonApp.cpp
@@ -28,6 +28,7 @@
#include "MessageHandler.h"
+#include <QDBusConnectionInterface>
#include <QDebug>
#include <QHostInfo>
#include <QTimer>
@@ -48,6 +49,8 @@ namespace SDDM {
// set testing parameter
m_testing = (arguments().indexOf(QStringLiteral("--test-mode")) != -1);
+
+ QDBusConnection::systemBus().interface()->startService(QStringLiteral("org.freedesktop.ConsoleKit"));
// create display manager
m_displayManager = new DisplayManager(this);