mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Adds GIO_EXTRA_MODULES environment variable support, closing bug #523039.
2008-03-28 A. Walton <awalton@svn.gnome.org> * giomodule.c (_g_io_modules_ensure_loaded): Adds GIO_EXTRA_MODULES environment variable support, closing bug #523039. svn path=/trunk/; revision=6768
This commit is contained in:
parent
4824b7dbb0
commit
096201834d
@ -1,3 +1,8 @@
|
||||
2008-03-28 A. Walton <awalton@svn.gnome.org>
|
||||
|
||||
* gio/overview.xml:
|
||||
Document GIO_EXTRA_MODULES, fixes a small typo.
|
||||
|
||||
2008-03-19 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gio/overview.xml: Document GVS_DISABLE_FUSE.
|
||||
|
@ -185,7 +185,7 @@
|
||||
|
||||
<para>
|
||||
This variable can be set to the name of a #GDesktopAppInfoLookup
|
||||
implementation to override the dfeault for debugging purposes.
|
||||
implementation to override the default for debugging purposes.
|
||||
GIO does not include a #GDesktopAppInfoLookup implementation,
|
||||
the GConf-based implementation in the gvfs module has the name
|
||||
"gconf".
|
||||
@ -203,6 +203,16 @@
|
||||
</para>
|
||||
</formalpara>
|
||||
|
||||
<formalpara>
|
||||
<title><envar>GIO_EXTRA_MODULES</envar></title>
|
||||
|
||||
<para>
|
||||
When this environment variable is set to a path, or a set of
|
||||
paths separated by a colon, GIO will attempt to load
|
||||
modules from within the path.
|
||||
</para>
|
||||
</formalpara>
|
||||
|
||||
</chapter>
|
||||
|
||||
<chapter id="gio-extension-points">
|
||||
|
@ -1,3 +1,9 @@
|
||||
2008-03-28 A. Walton <awalton@svn.gnome.org>
|
||||
|
||||
* giomodule.c (_g_io_modules_ensure_loaded):
|
||||
Adds GIO_EXTRA_MODULES environment variable support, closing bug
|
||||
#523039.
|
||||
|
||||
2008-03-28 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* gfile.c:
|
||||
|
@ -300,6 +300,7 @@ _g_io_modules_ensure_loaded (void)
|
||||
GList *modules, *l;
|
||||
static gboolean loaded_dirs = FALSE;
|
||||
GIOExtensionPoint *ep;
|
||||
const char *module_path;
|
||||
|
||||
G_LOCK (loaded_dirs);
|
||||
|
||||
@ -329,6 +330,23 @@ _g_io_modules_ensure_loaded (void)
|
||||
|
||||
modules = g_io_modules_load_all_in_directory (GIO_MODULE_DIR);
|
||||
|
||||
module_path = g_getenv ("GIO_EXTRA_MODULES");
|
||||
|
||||
if (module_path)
|
||||
{
|
||||
int i = 0;
|
||||
gchar **paths;
|
||||
paths = g_strsplit (module_path, ":", 0);
|
||||
|
||||
while (paths[i] != NULL)
|
||||
{
|
||||
modules = g_list_prepend (modules, g_io_modules_load_all_in_directory (paths[i]));
|
||||
i++;
|
||||
}
|
||||
|
||||
g_strfreev (paths);
|
||||
}
|
||||
|
||||
/* Initialize types from built-in "modules" */
|
||||
#if defined(HAVE_SYS_INOTIFY_H) || defined(HAVE_LINUX_INOTIFY_H)
|
||||
_g_inotify_directory_monitor_get_type ();
|
||||
|
Loading…
Reference in New Issue
Block a user