Originally Posted by
cb951303
unfortunately, programming-wise, that's not how it works. if you want to use gconf you need to compile your application against gconf libraries and that's what a dependency is.
Not entirely true. You can introduce a new run-time dependency without building against a library at all. See dlopen for information. It's handy in Python, for example, when using a C library that doesn't have a Python counterpart. Wikipedian example:
Code:
void* sdl_library = dlopen("libSDL.so", RTLD_LAZY);
if(sdl_library == NULL) {
// report error ...
} else {
// use the result in a call to dlsym
}
So, technically, Pidgin, Firefox, or any other application could check for the existence of the GConf library, and if it exists, dlopen it and do what's needed. If it doesn't, they could fall back to something else.
Bookmarks