Initialization

Initialization — Library initialization and main loop

Synopsis

void                gnome_db_init                       (void);
gchar*              gnome_db_get_application_exec_path  (const gchar *app_name);

Description

Details

gnome_db_init ()

void                gnome_db_init                       (void);

Initialization of the libgnomedb library, must be called before any usage of the library. Note: gtk_init() is not called by this function and should also be called.


gnome_db_get_application_exec_path ()

gchar*              gnome_db_get_application_exec_path  (const gchar *app_name);

Find the path to the application identified by app_name. For example if the application is "gnome-database-properties", then calling this function will return "/your/prefix/bin/gnome-database-properties-4.0" if Libgnomedb is installed in the "/your/prefix" prefix (which would usually be "/usr"), and for the ABI version 4.0.

app_name :

the name of the application to find

Returns :

the path as a new string, or NULL if the application cannot be found