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

Re: Environment variables for Debian - XIM server and XMODIFIERS case



Hi,

> I think the problem is that there are no reasonable defaults; its
> about a client which queries the environment for which server to
> connect to.  The user is supposed to specify the server as an
> environment variable.

The default is to not connect to a server and allow input of characters
present in the current keyboard mapping only, which is a reasonable
default since it allows the user to set up his account properly (using
language-env and/or an editor) and relogon.

That said, I think it would be nice if the various *dm programs that
support setting a language would also support setting an appropriate
input method. On my personal box, I have a script in
/etc/X11/Xsession.d:

case "$LANG" in
	ja_JP*)
		export XMODIFIERS=@im=uim-anthy
		exec uim-xim </dev/null >/dev/null 2>&1 &
		;;
	*)
		;;
esac

While this is clearly a local hack, it allows any user who logs on with
a Japanese locale to use anthy by default, and could probably be
rewritten in C or C++, with an appropriate GUI frontend and IM registry
to work in general.

> Arguable, policy would require the Debianized version to accept a
> command line argument or some such.

Pointless in this case, as the command line argument needs to be passed
to every xterm, which would require major changes e.g. to the menu
infrastructure.

   Simon

-- 
 GPG Fingerprint: 040E B5F7 84F1 4FBC CEAD  ADC6 18A0 CC8D 5706 A4B4

Attachment: signature.asc
Description: Digital signature


Reply to: