Skip to content

Commit

Permalink
[ssud] Register DBus object before service. Contributes to JB#36015
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjones committed Sep 23, 2016
1 parent ecc323b commit eccc8c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ssud/ssud.cpp
Expand Up @@ -18,14 +18,14 @@ const char *Ssud::OBJECT_PATH = "/org/nemo/ssu";

Ssud::Ssud(QObject *parent): QObject(parent){
QDBusConnection connection = QDBusConnection::systemBus();
if (!connection.registerService(SERVICE_NAME)) {
qFatal("Cannot register D-Bus service at %s", SERVICE_NAME);
}

if (!connection.registerObject(OBJECT_PATH, this)) {
qFatal("Cannot register object at %s", OBJECT_PATH);
}

if (!connection.registerService(SERVICE_NAME)) {
qFatal("Cannot register D-Bus service at %s", SERVICE_NAME);
}

// prepare for controlled suicide on boredom
const int AUTOCLOSE_TIMEOUT_MS = 180 * 1000;

Expand Down

0 comments on commit eccc8c8

Please sign in to comment.