Bug 57876 - /etc/X11/xinit/xinitrc.d/xinput script buglets
Summary: /etc/X11/xinit/xinitrc.d/xinput script buglets
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: xinitrc
Version: 7.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mike A. Harris
QA Contact: Aaron Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-12-30 09:35 UTC by eric_backus
Modified: 2007-04-18 16:38 UTC (History)
1 user (show)

Fixed In Version: 3.36
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-03-16 15:20:04 UTC
Embargoed:


Attachments (Terms of Use)
Patch to fix the problem (663 bytes, patch)
2001-12-30 09:38 UTC, eric_backus
no flags Details | Diff

Description eric_backus 2001-12-30 09:35:03 UTC
Description of Problem:

1. In the script /etc/X11/xinit/xinitrc.d/xinput, there is a shell variable
XIM.  If this variable is unset in the script's environment (which is
normally the case) then it is set to either some CJK language thing, or to
"none" otherwise.  In no case is it left empty.

However, later in the script (line 177), there is a check to see whether
XIM is non-empty, and if so the XMODIFIERS environment variable is
exported.  This means that XMODIFIERS is always exported even though it is
needed only for CJK language stuff, and the value exported is bogus.


2. At the end of /etc/X11/xinit/xinitrc.d/xinput, there is an extraneous
debugging echo statement left in.  This ends up in the user's
.xsession-errors file.  The debugging statement doesn't echo a newline, so
it messes up subsequent errors in ~/.xsession-errors.


A simple patch which fixes both of these is attached separately.


Version-Release number of selected component (if applicable):

xinitrc-3.20-1


How Reproducible:

Always reproducible.


Steps to Reproduce:
1. Log into KDE (probably Gnome as well, I haven't checked)
2. Examine XMODIFIERS environment variable in a shell, it contains a bogus
value.
3. Examine ~/.xsession-errors.  It contains a bogus debugging line.

Actual Results:


Expected Results:


Additional Information:

Comment 1 eric_backus 2001-12-30 09:38:09 UTC
Created attachment 41471 [details]
Patch to fix the problem

Comment 2 Jens Petersen 2004-03-16 02:58:53 UTC
XIM=none still present in FC.

Comment 3 Mike A. Harris 2004-03-16 15:20:04 UTC
Fixed in xinitrc 3.36


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