Text input fails in Chromium --app windows; GTK_IM_MODULE=xim restores input

オープン
#407 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
linux, python
領域
desktop

調査の方向性

Start by checking how WebApp Manager launches Chromium app windows and whether it sets GTK input method environment variables; the issue names no files, tests, or entry points. Try the reproduction steps on Linux with a text field, comparing --app mode with a normal browser window and the GTK_IM_MODULE=xim workaround. Done means confirming whether WebApp Manager reproduces the input failure and identifying its launch configuration.

索引モデルが issue の本文から書いたものです。

説明

Description

I encountered a possible GTK/IME-related input issue with Chromium-based web applications launched using Chromium's --app mode, and I wanted to check whether WebApp Manager is affected by the same behavior.

The issue appears to occur specifically when the website is launched with the --app flag. A normal browser window does not exhibit the problem.

In the affected --app window:

  • Text fields may show a blinking caret that freezes or behaves incorrectly after focus.
  • Keyboard input fails to register in the field.
  • Search boxes and other text inputs are affected.

During debugging, I found that setting the XIM input module before launching the application completely restores normal text input and caret behavior:

export GTK_IM_MODULE=xim

This makes me suspect an interaction between Chromium's --app mode, GTK input-method handling, and Linux IME frameworks.

Steps to Reproduce
  1. Launch a Chromium-based web application using the --app flag.
  2. Open a page containing a text input field or search box.
  3. Click inside the field.
  4. Observe the caret.
  5. Attempt to type.

I tested this with multiple unrelated websites, including Discord, Twitch, YouTube, Hulu, and Crunchyroll.

For comparison, launching the same sites in a normal browser window does not reproduce the issue.

Expected Behavior

Text fields should accept keyboard input normally, with the caret blinking and behaving as expected.

Actual Behavior

When launched using --app, the caret may freeze or behave incorrectly, and keyboard input fails to register.

Workaround

Launching the Chromium-based application with:

GTK_IM_MODULE=xim

Restores normal keyboard input and caret behavior.

Additional Information

I encountered this while developing a separate application that launches websites as standalone Chromium app windows. I have not yet confirmed whether WebApp Manager reproduces the issue, but WebApp Manager uses a similar app-style approach, so I wanted to check whether this behavior is already known or tracked.

If WebApp Manager does not reproduce the issue or does not use the affected configuration, feel free to close the report.

主要言語
Python
スター
1k
フォーク
132
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

linuxmint/webapp-manager のほかの issue

linuxmint/webapp-manager の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。