Re: Usage of GConf API issue (gconf_client_get_default,gconf_client_get)



On 04/ 6/10 08:20 AM, Zhang, Qiang Z wrote:
Hi all,
 
I am trying to write a library using GConf API (gconf_client_get, etc.) to read system configures info, but I encounter the follow issue:
gconf_client_get got nothing, and I found the DBUS_SESSION_BUS_ADDRESS is not set in the library process environment.
This is set when dbus-launch is run and typically is done during login.
Try dbus-launch --exit-with-session --sh-syntax <your command>
It should set that up for your program.

-Ghee
 
I don’t know why DBUS_SESSION_BUS_ADDRESS is not set in my library process environment. In fact, DBUS_SESSION_BUS_ADDRESS is already set in system.
So How to set correct DBUS_SESSION_BUS_ADDRESS in my library?
 
Thanks in advanced
 
-Best regards
-Qiang
 
 
_______________________________________________ gconf-list mailing list gconf-list gnome org http://mail.gnome.org/mailman/listinfo/gconf-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]