diff options
Diffstat (limited to 'kcontrol/input')
-rw-r--r-- | kcontrol/input/tdesyndaemon.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kcontrol/input/tdesyndaemon.cpp b/kcontrol/input/tdesyndaemon.cpp index 92855e40a..2be3e992c 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(); |