Re: How about adding a search path for gtk.immodules in user's home area?
- From: Owen Taylor <otaylor redhat com>
- To: Yao Zhang <yaoz vidar niaaa nih gov>
- Cc: gtk-i18n-list gnome org
- Subject: Re: How about adding a search path for gtk.immodules in user's home area?
- Date: Tue, 7 May 2002 10:56:57 -0400 (EDT)
Yao Zhang <yaoz vidar niaaa nih gov> writes:
> Right now, the only default directory for gtk.immodules is
> even though it can be explicitly set by GTK_IM_MODULE_FILE:
> GTK_IM_MODULE_FILE. Specifies the file listing the IM modules to load. This
> environment variable overwrites the im_module_file specified in the RC files,
> which in turn overwrites the default value sysconfdir/gtk-2.0/gtk.immodules
> (sysconfdir is the sysconfdir specified when GTK+ was configured, usually
> For someone does not have root permission, he/she has to set environment
> variable or edit RC file in order to use his/her own input method. It is
> doable but not very convenient. If we can add, for example,
> in the search path for gtk.immodules before we check directory
> it will be much easier for everyone. For IM developer, he/she can install
> files in the right place, either under home directory or system wide. Then
> for most users, they are not bothered by envrionment variables.
> In order to do this, it seems glib could use something like
> gchar *g_get_filename_in_path(const gchar *search_path,
> const gchar *filename);
> It will return the first existing filename in the path.
Well, the thing is, GTK+ doesn't scan for input modules, it just reads
the contents of the "im module file", so for the user to add additional
modules, they have to create a new updated file and point GTK+ to that.
] [Thread Prev