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

From: Moen Jim <[email-masked]>
Date: Thu, 23 Dec 2021 16:07:53 +0000

Thanks, the Environment "GTK_IM_MODULE" helps.
pgtk maybe used the variable to confirm whether the current environment is CLI or GUI.
________________________________
发件人: Yuuki Harano <[email-masked]>
发送时间: 2021年12月22日 6:38
收件人: [email-masked] <[email-masked]>
抄送: [email-masked] <[email-masked]>; [email-masked] <[email-masked]>
主题: Re: bug#52655: 29.0.50 pgtk bug on X Window.

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