c++ - registerService with system DBus fails (but works with session DBus) -
qt 5.2, win 7
when register service qdbusconnection::registerservice ( const qstring & servicename ), fails ("false") system dbus connection (qdbusconnection::systembus ()), works session dbus connection , peer connection.
this how start server: dbus-daemon.exe --system --address=tcp:host=127.0.0.1,port=45000
as of qtservice application cannot connect system bus when running service have tried (see here) changing system.conf
<auth>anonymous</auth> <allow_anonymous/> i found similar question here. have tried policy described there.
any hints how can overcome issue, or @ least obtain precise error messages? "false" of method not help.
-- edit ---
below code gives me error message not connected server connection. method qdbusconnection::systembus() not automatically connect (as session, peer)?
qdbusconnection con = qdbusconnection::systembus(); if (!con.registerservice(servicename)) { qcritical() << con.lasterror().message(); qfatal("cannot register dbus service, server started? dbus-daemon.exe --system --address=tcp:host=192.168.0.133,port=45000"); } --- edit 2, commet of jb0x2d1 ----
i agree, think related .conf file.
- the link provided , 1 above me lead to same example . have tried
.conffile there (of course, changed service names accordingly names) - found interesting example: https://wiki.ubuntu.com/debuggingdbus . unfortunately no success
hard tell, whether issue windows related, examples linux driven. wonder, minimal conf "allow anybody" be.
Comments
Post a Comment