I am using gio and DBUS implementation to create a daemon process. I'm using 
g_bus_own_name() to acquire the name, and my error case respond the the 
busAcquiredCb then nameLostCb scenario.  Here is my code.
mNameRequestId = g_bus_own_name(G_BUS_TYPE_SYSTEM, //bus type
"org.tizen.setting", //bus name
G_BUS_NAME_OWNER_FLAGS_NONE, //flags
busAcquiredCb, //bus acquired callback
nameAcquiredCb,//name acquired callback
nameLostCb,//name lost callback
NULL,
NULL);
I'm sure "orr.tizen.setting" is the unique name.
I have tried the method in method.This is setting.conf in /etc/dbus-1/systemd/
<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd";>
<busconfig>
        <policy user="root">
                <allow own="org.tizen.setting"/>
                <allow send_destination="org.tizen.setting"/>
        </policy>
        <policy at_console="true">
                <deny own="org.tizen.setting"/>
                <allow send_destination="org.tizen.setting"/>
        </policy>
        <policy context="default">
                <deny own="org.tizen.setting"/>
                <allow send_destination="org.tizen.setting"/>
        </policy>
</busconfig>
how can I get more information about the error?
_______________________________________________
IVI mailing list
[email protected]
https://lists.tizen.org/listinfo/ivi

Reply via email to