Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'jb36015' into 'master'
[ssud] Register DBus object before service. Contributes to JB#36015



See merge request !4
  • Loading branch information
pvuorela committed Sep 29, 2016
2 parents ecc323b + eccc8c8 commit 8832925
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 8832925

Please sign in to comment.