Re: gconf_engine_get_for_address behavior



Mark,

Sorry for not being complete. Here's the complete output:

=======================================
Acquired engine handle using gconf_engine_get_for_address: asas
Could not get engine using gconf_engine_get_local: asas
Message: Couldn't resolve address for configuration source:
 Bad address `asas' 
=======================================

Now, the message you have mentioned also appears. But, I figured
out that was because of permissions problem. Also, I noticed that
the permissions error message comes when we follow the configuration 
source's format correctly: that is, if the input is 
xml:readwrite:/asasa

=======================================
Acquired engine handle using gconf_engine_get_for_address:
xml:readwrite:/asasa
Could not get engine using gconf_engine_get_local:
xml:readwrite:/asasa
Message: Failed:
 Could not make directory `/asasa': Permission denied
=======================================

However, my problem is that, in both the cases,
gconf_engine_get_for_address
is not returning an error. I wanted to know if this behavior is
expected.

Thanks
Hemanth

>>> Mark McLoughlin <mark skynet ie> 4/23/2004 3:39:20 PM >>>
Hi,

On Fri, 2004-04-23 at 09:18, Hemanth Yamijala wrote:
> Hi Havoc,
> 
> Thanks for the response. Please find attached a quickly
> written C code for the same. 
> 
> I tried the test with some cases, for e.g.:
> 
> a.out junk_string_not_in_path
> a.out valid_string_in_path
> 
> For the first one the output is:
> "Acquired engine handle using gconf_engine_get_for_address.."
> "Could not get engine using gconf_engine_get_local.."

	What follows the ".." ? Its kind of important - e.g. if you pass
in the
path for a source which doesn't exist and you don't have permissions
to
create that directory you get:

"Message: Failed: Could not make directory
`/etc/gconf/gconf.xml.defaults1': Permission denied"

	That's expected behaviour ..

Cheers,
Mark.

_______________________________________________
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]