Re: How about adding a search path for gtk.immodules in user's home area?



> From otaylor redhat com Tue May  7 11:30:47 2002
> 
> 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.

I consider
    gtk-query-immodules-2.0 
is part of GTK+ 2.  It will scan directories like
    ~/.gtk-2.0/immodules
for IM modules.  For an IM module developer, he/she can use this command
in the installation script to create "im module file"
    gtk.immodules

While GTK+ as a toolkit library, it only check directory
    sysconfdir/gtk-2.0/
for this "im module file", besides rc file and/or environment variable.

Suppose a user does not have permission to modify anything in
    sysconfdir/gtk-2.0/
The only way he/she can install and use a new IM module is by modify
rc file or environment variable, which is not very conveniet.  The developer
has to write instructions as how to install the module, etc.  If GTK+
can check one more directory under user's home directory, with the right
installation script, the user won't need to worry about rc file or
environment variables.

I think rc file or environment variable settings are for those who know
the system very well.

Regards,

Yao Zhang



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