티스토리 뷰

Wayland 환경에서 크롬을 실행했을 때 입력기 관련 이슈가 있는 경우 GTK4로 동작하고 있는지 확인해보자.

 

for pid in $(pidof chrome); do grep -i gtk /proc/"$pid"/maps; done

 

GTK3 라이브러리가 사용되고 있는 것이 보인다. 다음과 같이 GTK 버전을 명시하여 크롬을 실행할 수 있다.

 

/usr/bin/google-chrome-stable --gtk-version=4

 

이렇게 해서 실행된 크롬에서 입력기가 잘 작동하는 경우 데스크탑 바로가기를 직접 고쳐주면 된다.

 

cat /usr/share/applications/google-chrome.desktop | grep 'Exec'
# Exec가 있는 부분
# Exec=/usr/bin/google-chrome-stable %U
# Exec=/usr/bin/google-chrome-stable
# Exec=/usr/bin/google-chrome-stable --incognito

sudo vim /usr/share/applications/google-chrome.desktop
# Exec가 있는 부분을 모두 찾아 옵션을 추가한다.
# Exec=/usr/bin/google-chrome-stable --gtk-version=4 %U
# Exec=/usr/bin/google-chrome-stable --gtk-version=4
# Exec=/usr/bin/google-chrome-stable --incognito --gtk-version=4
# :wq

 

이상하게도 dnf 커맨드로 설치한 크로미움의 경우 버전과 빌드 번호가 크롬과 똑같은데도 관련 문제가 없었다. 아마 페도라에서 패키징할 때 손을 써둔 것 같다.

 

참고 자료

https://bbs.archlinux.org/viewtopic.php?id=284900

https://bugs.chromium.org/p/chromium/issues/detail?id=1364520

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
글 보관함