scim xinput.d file causes login failure

Bug #35852 reported by Gary Coady
8
Affects Status Importance Assigned to Milestone
scim (Ubuntu)
Fix Released
Medium
Ming Hua

Bug Description

I'm not sure if I'm using scim/im-switch properly, but to get scim to work in a KDE environment, I ran "im-switch -s scim".
This caused a symlink to be created:
gary@gcoady-dt:~$ ls -l .xinput.d/
total 0
lrwxrwxrwx 1 gary gary 28 2006-03-21 12:05 en_IE -> /etc/X11/xinit/xinput.d/scim

However, the DEPENDS line of this script contains a pipe symbol, causing the error
/home/gary/.xinput.d/en_IE: line 15: scim-qtimm: command not found
and the login fails.

I don't think you can use the pipe for showing possible alternatives, and also source the same file (I commented out the DEPENDS line, and scim now works fine).

For reference, the depends line is:
DEPENDS=scim,scim-gtk2-immodule|scim-qtimm

The version of scim is 1.4.4-1ubuntu5.

Revision history for this message
Ming Hua (minghua) wrote :

You are right. It seems I didn't test my changes to the im-switch configuration files carefully. I'll fix this as soon as possible.

Thanks for spotting this.

Changed in scim:
assignee: nobody → minghua
status: Unconfirmed → Confirmed
Revision history for this message
Ming Hua (minghua) wrote :

Just for the record, I can reproduce the error message, but not the login failure. I can login through GDM just fine, only an error message in ~/.xsession-errors.

My proposed fix would be changing the "|" to "," and as a consequence scim's im-switch setting will asks for both scim-gtk2-immodule and scim-qtimm. But since this is not hard dependency but just a suggestion, it should be fine.

Revision history for this message
Gary Coady (garycoady) wrote :

The suggested solution works fine for me.

FYI, the error seems to be fatal when using kdm, but not with gdm.

Looks like gdm uses /etc/gdm/Xsession, whereas kdm uses /etc/X11/Xsession - and in the X11 version, there's a "set -e" line.

Revision history for this message
Ming Hua (minghua) wrote :

This should be fixed in scim 1.4.4-1ubuntu6. Gary, as you have modified your /etc/X11/xinit/xinput.d/scim file, you will likely be asked about conffile modification during upgrade. Just choose to use the new conffile comes from the package.

scim (1.4.4-1ubuntu6) dapper; urgency=low

  * Do not use "|" in DEPENDS value of im-switch setting to avoid error
    message at login. (Ubuntu #35852)
  * Remove scim from the DEPENDS value of im-switch settings.

 -- Ming Hua <email address hidden> Wed, 22 Mar 2006 21:17:01 -0600

Changed in scim:
status: Confirmed → Fix Released
Revision history for this message
Ming Hua (minghua) wrote : Re: [Bug 35852] scim xinput.d file causes login failure

On Thu, Mar 23, 2006 at 11:38:12AM -0000, Gary Coady wrote:
>
> FYI, the error seems to be fatal when using kdm, but not with gdm.
>
> Looks like gdm uses /etc/gdm/Xsession, whereas kdm uses
> /etc/X11/Xsession - and in the X11 version, there's a "set -e" line.

Thanks for finding out the reason, Gary. I'll keep this in mind.

Ming
2006.03.23

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.