IT 개발/에러의 모든 것
[Terminator] 이중 입력 문제 해결 방법
hi_g1
2024. 3. 9. 14:40
0. 문제상황
ubuntu22.04 환경에서 Terminator를 broadcast all로 변경하여 문자를 입력할 시, 선택한 터미널 제외 나머지 터미널에서 이중 입력되는 문제 발생, 해결 방법은 아래와 같음
1. 해결방법
step1. terminator 설정 파일 열기
# 터미네이터 설정 파일 열기
sudo vi /usr/bin/terminator
step2. 값 바꿔주기 (1에서 0으로)
step1에서 연 파일에서 아래 부분으로 이동 후, os.environ['IBUS_DISABLE_SNOOPER']='1' 의 1값을 0으로 변경한다.
# as-is
username = pwd.getpwuid(os.getuid()).pw_name
ibus_running = [p for p in psutil.process_iter() if p.name() == 'ibus-daemon' and p.username() == username]
ibus_running = len(ibus_running) > 0
if ibus_running:
os.environ['IBUS_DISABLE_SNOOPER']='1' # edit here
# to-be
username = pwd.getpwuid(os.getuid()).pw_name
ibus_running = [p for p in psutil.process_iter() if p.name() == 'ibus-daemon' and p.username() == username]
ibus_running = len(ibus_running) > 0
if ibus_running:
os.environ['IBUS_DISABLE_SNOOPER']='0' # edit here
step3. 재부팅하기
재부팅 할때까지 딱히 적용이 안되는 것 같아 재부팅 한번 해줬더니 해당 문제 해결!
[참고자료]
https://github.com/gnome-terminator/terminator/issues/623
Double input to broadcasted group · Issue #623 · gnome-terminator/terminator
Describe the bug When using multiple split panes and broadcasting to a group, the group members receive double the input sent from the selected pane. Screenshots attached below. To Reproduce Steps ...
github.com