LoginSignup
3
1

More than 3 years have passed since last update.

Ubuntu20.04で"google-chrome-stable has no capability of surrounding-text feature"

Last updated at Posted at 2021-05-24

事象

Ubuntu 20.04 でGoogle Chromeでキーボードをタイプするたびに、/var/logs/syslogに"google-chrome-stable has no capability of surrounding-text feature"ワーニングが出力される。

/var/logs/syslog
May 24 20:07:29 <server_name> gnome-shell[73920]: (google-chrome-stable:73901): IBUS-WARNING **: 20:07:29.454: google-chrome-stable has no capability of surrounding-text feature
May 24 20:07:32 <server_name> gnome-shell[73920]: (google-chrome-stable:73901): IBUS-WARNING **: 20:07:32.216: google-chrome-stable has no capability of surrounding-text feature
...

環境

動作環境は以下の通り。

$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

原因調査

IBus のissueを確認したところ、google chromeとgnome terminalの既知のバグであることがわかった。

ここで、IBusはUnix系のインプットメソッドの1つである。インプットメソッドとは、コンピュータに文字を入力するためのアプリケーションである。インプットメソッドは、ユーザがタイプしたキーの情報を文字に変換する。たとえば、キーボードで"aiueo"と入力した情報を"あいうえお"に変換する。

IBusのissueには次のように書かれていた。

OK, you mean both gnome-terminal and chrome does not work with surround text feature.
OK、つまり、gnome-terminalとchromeの両方がサラウンドテキスト機能で機能しないということです。

I didn't check chrome but from your log, you have to report the issue to chrome.
私はクロームをチェックしませんでしたが、あなたのログから、あなたはクロームに問題を報告しなければなりません。

We have already reported the issue to gnome-terminal.
この問題はすでにgnome-terminalに報告されています。

https://gitlab.gnome.org/GNOME/vte/-/issues/214

gnome-terminalは1年前に処置済だが、google chromeはどうも処置されていないようだ。

回避策

インプットメソッドをIBusからfcitxに変更する。fcitxは中国語系のインプットメソッドであり、前述のGoogle Chromeのバグを回避できる。

まず、以下のコマンドでfcitx-mozcをインストールする。

sudo apt update && sudo apt -y install fcitx-mozc

次に、言語サポート画面を開く。

言語サポートを検索

そして、キーボード入力に使うIMシステムをfcitxに設定して、閉じるボタンを押す。

fcitxを選択

最後に、Ubuntuを再起動する。

まとめ

原因は、Google ChromeのIBusに関するバグ。本記事執筆時点で未処置。

インプットメソッドをIBusからfcitxに変更することで本事象を回避可能。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1