gnome-init

Name

gnome-init -- 

Synopsis


#include <libgnome/libgnome.h>



#define     LIBGNOME_MODULE
#define     GNOME_BONOBO_MODULE

const GnomeModuleInfo* libgnome_module_info_get
                                            (void);
const GnomeModuleInfo* gnome_bonobo_module_info_get
                                            (void);

const char* gnome_user_dir_get              (void);
const char* gnome_user_private_dir_get      (void);
const char* gnome_user_accels_dir_get       (void);

Description

Details

LIBGNOME_MODULE

#define LIBGNOME_MODULE libgnome_module_info_get()

This macro wraps the call to libgnome_module_info_get() and is the usual way of retrieving the GnomeModuleInfo returned by this function.


GNOME_BONOBO_MODULE

#define GNOME_BONOBO_MODULE gnome_bonobo_module_info_get()

This macro wraps the call to gnome_bonobo_module_info_get() and is the usual way of retrieving the GnomeModuleInfo returned by this function.


libgnome_module_info_get ()

const GnomeModuleInfo* libgnome_module_info_get
                                            (void);

Retrieves the current libgnome version and the modules it depends on.


gnome_bonobo_module_info_get ()

const GnomeModuleInfo* gnome_bonobo_module_info_get
                                            (void);

Retrieves the bonobo module version and indicate that it requires the current libgnome and its dependencies (although libbonobo does not depend on libgnome, libbonoboui does and this will also be initialised when initialising a GNOME app).


gnome_user_dir_get ()

const char* gnome_user_dir_get              (void);


gnome_user_private_dir_get ()

const char* gnome_user_private_dir_get      (void);

Differs from gnome_user_dir_get() in that the directory returned here will have had permissions of 0700 (rwx------) enforced when it was created. Of course, the permissions may have been altered since creation, so care still needs to be taken.


gnome_user_accels_dir_get ()

const char* gnome_user_accels_dir_get       (void);