RE: GnomeVFS API and libgnome API ?



> From: C C [mailto:c1010 yahoo com] 
> To detect gnome-vfs-2.0 (or >2.0) at runtime, is the
> following true:
> - if a GTK app (requiring GTK>=2.0.6) is running fine,
> then this GTK app can also assume gnome-vfs is also
> available?

If you want to use gnome-vfs then you should pkg-config for gnome-vfs. Let
pkg-config worry about dependencies.

> - Non GUI apps could detect if they can use (not
> install) gnome-vfs at runtime by doing a dlopen on the 
> gnome-vfs shared library and a dlsym on the function 
> "gnome_vfs_initialized". If this passes, then the app can 
> assume gnome-vfs can be used?

Why not just use pkg-config instead of this hackery?

Murray Cumming
murrayc usa net
www.murrayc.com 



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