Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

設置 GTK_IM_MODULE=hime 會導致 Aegisub 出現詭異的透明背景 #761

Open
msparkles opened this issue Aug 4, 2021 · 5 comments
Open

Comments

@msparkles
Copy link

msparkles commented Aug 4, 2021

如下圖:
image
image

研究了很久才發現跟這個變數有關。大多數人出問題都是跟 xim,受影響的軟體有 gedit/gnome-calculator
但是我的其他 GTK-based 軟體都沒有這個問題(有測試安裝過上述兩位)

EDIT 1:
hime-env

====Detecting hime install====
==>Hime binary found.

==>/usr/bin/hime: version 0.9.11 (git 4a79238), linked to /usr/lib/libgtk-x11-2.0.so.0
==>/usr/share/doc/hime/ChangeLog: 0.9.11


====Detecting OS/Distribution====
Linux 5.10.53-1-MANJARO #1 SMP PREEMPT Mon Jul 26 07:18:28 UTC 2021 x86_64 GNU/Linux

Distributor ID:	ManjaroLinux
Description:	Manjaro Linux
Release:	21.1.0
Codename:	Pahvo
/etc/skel/.config/falkon/profiles/manjaro/version:
3.0.1
/etc/os-release:
NAME="Manjaro Linux"
ID=manjaro
ID_LIKE=arch
BUILD_ID=rolling
PRETTY_NAME="Manjaro Linux"
ANSI_COLOR="32;1;24;144;200"
HOME_URL="https://manjaro.org/"
DOCUMENTATION_URL="https://wiki.manjaro.org/"
SUPPORT_URL="https://manjaro.org/"
BUG_REPORT_URL="https://bugs.manjaro.org/"
LOGO=manjarolinux
/etc/arch-release:
Manjaro Linux
/etc/apparmor.d/local/lsb_release:
# Site-specific additions and overrides for 'lsb_release'
/etc/apparmor.d/lsb_release:
# Note: This profile does not specify an attachment path because it is
# intended to be used only via "Px -> lsb_release" exec transitions from
# other profiles. We want to confine the lsb_release(1) utility when it
# is invoked from other confined applications, but not when it is used
# in regular (unconfined) shell scripts or run directly by the user.

abi <abi/3.0>,

include <tunables/global>

# Do not attach to /usr/bin/lsb_release by default
profile lsb_release {
  include <abstractions/base>
  include <abstractions/python>

  owner @{PROC}/@{pid}/fd/ r,

  /dev/tty rw,

  /usr/bin/lsb_release r,
  /usr/bin/python3.[0-9] mr,

  /etc/debian_version r,
  /etc/default/apport r,
  /etc/dpkg/origins/** r,
  /etc/lsb-release r,
  /etc/lsb-release.d/ r,

  /{usr/,}bin/bash ixr,
  /{usr/,}bin/dash ixr,
  /usr/bin/basename ixr,
  /usr/bin/dpkg-query ixr,
  /usr/bin/getopt ixr,
  /usr/bin/sed ixr,
  /usr/bin/tr ixr,

  # TODO - many more permissions needed for this to work
  deny /usr/bin/apt-cache x,

  /usr/bin/ r,
  /usr/include/python*/pyconfig.h r,
  /usr/share/distro-info/** r,
  /usr/share/dpkg/** r,
  /usr/share/terminfo/** r,
  /var/lib/dpkg/** r,

  # file_inherit
  deny /tmp/gtalkplugin.log w,

  # Site-specific additions and overrides. See local/README for details.
  include if exists <local/lsb_release>
}
/etc/manjaro-release:
Manjaro Linux
/etc/lsb-release:
DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=21.1.0
DISTRIB_CODENAME=Pahvo
DISTRIB_DESCRIPTION="Manjaro Linux"

/etc/issue: Manjaro Linux 


====Detecting Environment Variables====

XMODIFIERS   : XMODIFIERS=@im=hime
LANG               : LANG=en_US.UTF-8
LANG	      : en_US.UTF-8
LC_NUMERIC	      : en_US.UTF-8
LC_TIME	      : en_US.UTF-8
LC_MONETARY	      : en_US.UTF-8
LC_PAPER	      : en_US.UTF-8
LC_NAME	      : en_US.UTF-8
LC_ADDRESS	      : en_US.UTF-8
LC_TELEPHONE	      : en_US.UTF-8
LC_MEASUREMENT	      : en_US.UTF-8
LC_IDENTIFICATION	      : en_US.UTF-8
GTK_IM_MODULE: GTK_IM_MODULE=hime
QT_IM_MODULE : QT_IM_MODULE=hime


====Detecting hime status====
==>Running hime number: 1

==>hime socket number: 1

==>System library path: 
/lib  /lib64  /usr/lib	/usr/lib32  /usr/lib64
====Immodule status====
find: ‘/usr/lib/firmware/b43’: Permission denied
find: ‘/usr/lib/firmware/b43legacy’: Permission denied

==>gtk-query-immodules-2.0:
/usr/lib/gtk-2.0/2.10.0/immodules/im-hime.so

==>gtk-2.0 immodule cache
/usr/lib/gtk-2.0/2.10.0/immodules/im-hime.so
find: ‘/usr/lib/firmware/b43’: Permission denied
find: ‘/usr/lib/firmware/b43legacy’: Permission denied

==>gtk-query-immodules-3.0:
/usr/lib/gtk-3.0/3.0.0/immodules/im-hime.so

==>gtk-3.0 immodule cache
/usr/lib/gtk-3.0/3.0.0/immodules/im-hime.so
@msparkles
Copy link
Author

有需要更多訊息的話,抱歉了,本人 Linux 新手,不確定甚麼資訊重要

@msparkles
Copy link
Author

msparkles commented Aug 5, 2021

另外,Hime 似乎也沒辦法在 Aegisub 使用

@msparkles
Copy link
Author

測試gcin同樣不行,ibus, fctix都沒問題(但是這兩個都不好用啊...)

@marktwtn
Copy link
Contributor

marktwtn commented Apr 5, 2022

@MG138 目前還不確定問題出在哪裡

不過這應該跟 Aegisub 是用 wxWidgets 開發有關,同樣的情況也會發生在 FileZilla 以及 Poedit 這些使用 wxWidgets 的軟體上

@xilwen
Copy link

xilwen commented Apr 7, 2022

這個問題在 Ubuntu 套件庫的 Audacity 2.4.2 也會發生,但 Audacity Github 上的 3.0.4/3.1.3 AppImage 就正常 (可能跟 Audacity 3.x.x 開始用自己修改的 wxWidget 3.1.3 搭 gtk2 有關? launchpad 有類似問題(但為xim) 的回報 )

另外有趣的現象:如果用 GTK_DEBUG=updates /usr/bin/audacity 啟動程式, GTK_IM_MODULE= 在顯示更新區域的速度非常快, GTK_IM_MODULE=hime 則非常慢,背景和元件異常的部份永遠不會更新出應有的圖片;同樣 GTK_DEBUG=updates 用於 gnome-disks, pluma, ghex 的程式則沒有這個情形。

測試環境: Ubuntu 22.04, hime commit 7b4f332 (gcin 2.9.0+dfsg1-2build1亦同)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants