summaryrefslogtreecommitdiffstats
path: root/kcontrol/input/tdesyndaemon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/input/tdesyndaemon.cpp')
-rw-r--r--kcontrol/input/tdesyndaemon.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/kcontrol/input/tdesyndaemon.cpp b/kcontrol/input/tdesyndaemon.cpp
index 46b6d1c92..a9dfebc01 100644
--- a/kcontrol/input/tdesyndaemon.cpp
+++ b/kcontrol/input/tdesyndaemon.cpp
@@ -194,7 +194,13 @@ extern "C" TDE_EXPORT int main(int argc, char *argv[])
TDEApplication app;
app.disableSessionManagement();
+ if (app.dcopClient()->isApplicationRegistered("tdesyndaemon"))
+ {
+ kdWarning() << "TDESynDaemon already running, exiting..." << endl;
+ return 255;
+ }
app.dcopClient()->registerAs("tdesyndaemon", false);
+ app.dcopClient()->setDefaultObject("tdesyndaemon");
TDESynDaemon tdesyndaemon;
return app.exec();