Subject: bug#52655: 29.0.50 pgtk bug on X Window.

From: Yuuki Harano <[email-masked]>
Date: Wed, 22 Dec 2021 23:38:37 +0900 (JST)

It reproduced on my environment.

----------------
[Unit]
Description=Emacs text editor
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/

[Service]
Type=simple
Environment=DISPLAY=:%i

#ng
#Environment="LC_CTYPE=ja_JP.UTF-8" "XMODIFIERS=@im=ibus"

#ng
#Environment="LC_CTYPE=ja_JP.UTF-8"

#ok
Environment="LC_CTYPE=ja_JP.UTF-8" "GTK_IM_MODULE=ibus"

#ng
#Environment="LANG=ja_JP.UTF-8"

#ok
#Environment="LC_CTYPE=C" "XMODIFIERS=@im=ibus"

#ok
#Environment="LC_CTYPE=C" "GTK_IM_MODULE=ibus"

ExecStart=/home/masm/src/emacs-savannah/objs/src/emacs --fg-daemon -Q
ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
ExecReload=/usr/bin/emacsclient --eval "(restart-emacs)"
Restart=on-failure
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=default.target
----------------

In my case, it was solved when I added GTK_IM_MODULE.

Is it the same for you?

-- 
Yuuki Harano