KUniqueApplication and premature dbus calls
Michael Jansen
kde at michael-jansen.biz
Sun Apr 13 15:42:50 BST 2008
HI
I swear it's the last question / problem for today.
KUniqueApplication doesn't like it when you make a dbus call before calling
KUniqueApplication::start():
I get
QDBusConnectionPrivate::connectSignal: received error from D-Bus server while
connecting signal to OxygenStyle::globalSettingsChange(int,int):
org.freedesktop.DBus.Error.NoReply (Did not receive a reply. Possible causes
include: the remote application did not send a reply, the message bus security
policy blocked the reply, the reply timeout expired, or the network connection
was broken.)
ASSERT: "false" in file /home/kde4dev/build/qt-x11-4.4-
snapshot/src/src/dbus/qdbusintegrator.cpp, line 1840
The problem is this call
QDBusConnection bus = QDBusConnection::sessionBus();
QDBusInterface iface(
"org.kde.khotkeys",
"/",
QString(),
bus );
Put it into any kuniqueapplication before the KUniqueApplication::start() call
and you get the problem.
Should that be documented? I found some similar problem reports googling but
never a explanation or how to fix it.
Mike
--
Michael Jansen
Available for contract work ( Development / Configuration Management )
http://www.michael-jansen.biz
More information about the kde-core-devel
mailing list