Bug 4059

Summary: Support for xkbmap missing
Product: [Retired] Red Hat Linux Reporter: Milan Kerslager <milan.kerslager>
Component: xinitrcAssignee: Preston Brown <pbrown>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-09-23 18:30:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Milan Kerslager 1999-07-15 21:08:29 UTC
As xkb is 'new and true' support for national keyboards
under X we need support for easy localization of RH
distributions.

/etc/X11/xinit/xinitrc should contain something like:

userxkbmap=$HOME/.Xkbmap
sysxkbmap=/etc/X11/xinit/Xkbmap

if [ -f $sysxkbmap ]; then
    setxkbmap `cat $sysxkbmap`
fi

if [ -f $userxkbmap ]; then
    setxkbmap `cat $userxkbmap`
fi

Same sequence is needed in /etc/X11/xdm/Xsession.

There is a problem: setxkbmap do not read configuration from
file so I used `cat file`.

Another problem is that use of mutilple methods of keyboards
settings are bad in final effect. So the scripts should
raher contain something like (to avoid keyboard malfunction
due users stupidity):

if  [ -f ...]; then
...
elif [ -f ...]; then
...
elif [ -f ...]; then
...
fi

This was in one of this files already but somebody changed
both to (bad) current form. I mean that the first condition
should be xkb method mentioned above as this is new and will
be supported in future. Thus other methods should never be
used when xkb is once configured.

Thanx a lot.

Comment 1 Milan Kerslager 1999-09-14 23:08:59 UTC
Patch submited. If you want, download whole PGP signed package:
ftp://ftp.spsselib.hiedu.cz/pub/users/Kerslager/RedHat-6.0/SRPMS/xinitrc-2.4.1-2cs.src.rpm

Public PGP key by: finger kerslage.hiedu.cz

I wish to have it in 6.1 (to be happy due localization feature).
Patch to Xfree follow...

Comment 2 Preston Brown 1999-09-23 18:30:59 UTC
Generally xkb is configured through /etc/X11/XF86Config.  However,
your additions seem harmless and perhaps beneficial, so I have added
them for the next release.