Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 6885 - xmodmap runs on ~/.Xmodmap *TWICE*
Summary: xmodmap runs on ~/.Xmodmap *TWICE*
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: xinitrc
Version: 6.1
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Preston Brown
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 1999-11-10 19:41 UTC by Jeff Norden
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2000-01-11 14:42:44 UTC

Attachments (Terms of Use)

Description Jeff Norden 1999-11-10 19:41:34 UTC
The RH6.1 /etc/X11/xinit/xinitrc runs xmodmap on
the users .Xmodmap file twice, assuming that the
setxkbmap is not being used.

For many people, this behavior is probably
harmless.  But my .Xmodmap uses keysms (not
keycodes) to swap the caps_lock and the right-hand
control keys.  Running xmodmap twice swaps the
keys twice, which is the same as not swapping them
at all!

The relevant lines from xinitrc (lines 40-60) are
below.  The first 'xmodmap $usermodmap' inside the
XKB_IN_USE conditional is probably the intended
one.  I think the second one was just accidentally
left in the file, and should be deleted.

I almost hate to submit this because xinitrc
currently has zarro boogs :-)

-- /etc/X11/xinit/xinitrc, lines 40-60 --
# xkb and xmodmap don't play nice together
if [ -z $XKB_IN_USE ]; then
    if [ -f $oldsysmodmap ]; then
	xmodmap $oldsysmodmap

    if [ -f $sysmodmap ]; then
	xmodmap $sysmodmap

    if [ -f $usermodmap ]; then
	xmodmap $usermodmap

unset XKB_IN_USE

if [ -f $usermodmap ]; then
    xmodmap $usermodmap

Comment 1 Preston Brown 2000-01-11 14:42:59 UTC
fixed for 6.2.  Thanks for the report.

Note You need to log in before you can comment on or make changes to this bug.