can't disable input methods for gnome-terminal

Bug #1510528 reported by ktabata
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-terminal (Ubuntu)
New
Undecided
Unassigned

Bug Description

> 1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu

Description: Ubuntu 15.10
Release: 15.10

> 2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center

gnome-terminal:
  Installed: 3.16.2-1ubuntu4
  Candidate: 3.16.2-1ubuntu4
  Version table:
 *** 3.16.2-1ubuntu4 0
        500 http://jp.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
        100 /var/lib/dpkg/status

> 3) What you expected to happen

Disabling input methods by:
 $ XMODIFIERS=@im=none GTK_IM_MODULE=xim gnome-terminal

> 4) What happened instead

Can't disable input methods.
On Ubuntu 15.04, I can disable input methods this way.
This poses a problem for C-space on emacs -nw.

I think this is a regression bug because I can avoid this problem by using Ubuntu 15.04 version of /usr/bin/gnome-terminal script. The most important difference between older and newer /usr/bin/gnome-terminal is:

< if not cmdargs.disable_factory and cmdargs.cls is not None:
< if self.name is not None:
< self.args.append('--app-id=%s' % self.name)
---
> if not cmdargs.disable_factory and self.name is None:
> sys.exit(subprocess.call(self.args))

If I change these lines back, I can disable input methods.

Revision history for this message
ktabata (tabata-keiichi) wrote :

The attachment is workaround for /usr/bin/gnome-terminal.
I'm not sure why this works, but I hope this helps developers.

Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :

Could you please launch the "cat" command and then press Ctrl-space? What do you see without touching the input method, and with touching it plus your patch? The expected behavior is ^@ to appear.

Revision history for this message
ktabata (tabata-keiichi) wrote :

Hi Egmont, thank you for response.

> Could you please launch the "cat" command and then press Ctrl-space?
> What do you see without touching the input method,

The input method turns on.

> and with touching it plus your patch?

^@

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.