2017-09-07 3 views
0

PyCharm Community Edition 2017.2.1과 Zsh을 사용하는 아치 리눅스를 기본 쉘로, i3을 내 윈도우 관리자로 설치했습니다.PyCharm/IntelliJ IDEA 터미널을 열면 새로운 Xorg 세션이 시작됩니다.

PyCharm 안에 새 터미널 창을 열면 새로운 Xorg 세션이 시작되고 (exec i3) 생각하고 새로운 TTY로 전환합니다. 내가 ctrl+alt+F1 내 주요 세션으로 돌아올 때 나는 터미널에서 이러한 로그를 참조하십시오 내가 설정에서 비난하는 쉘을 설정하면

X.Org X Server 1.19.3 
Release Date: 2017-03-15 
X Protocol Version 11, Revision 0 
Build Operating System: Linux 4.12.5-1-ARCH x86_64 
Current Operating System: Linux lenovo-laptop 4.12.8-2-ARCH #1 SMP PREEMPT Fri Aug 18 14:08:02 UTC 2017 x86_64 
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=8efaeb16-67b6-4063-a130-7e1a10cb0d2f rw quiet 
Build Date: 13 August 2017 09:37:50PM 

Current version of pixman: 0.34.0 
     Before reporting problems, check http://wiki.x.org 
     to make sure that you have the latest version. 
Markers: (--) probed, (**) from config file, (==) default setting, 
     (++) from command line, (!!) notice, (II) informational, 
     (WW) warning, (EE) error, (NI) not implemented, (??) unknown. 
(==) Log file: "/var/log/Xorg.1.log", Time: Thu Sep 7 09:00:01 2017 
(==) Using config directory: "/etc/X11/xorg.conf.d" 
(==) Using system config directory "/usr/share/X11/xorg.conf.d" 
Name Lost. Is Another notification daemon running? 
[libi3] ../../i3-4.13/libi3/font.c Using Pango font monospace, size 8 
[libi3] ../../i3-4.13/libi3/font.c X11 root window dictates 96.094581 DPI 
i3status: trying to auto-detect output_format setting 
i3status: auto-detected "i3bar" 
(II) AIGLX: Suspending AIGLX clients for VT switch 

가 정상적으로 작동합니다. 터미널을 정상적으로 동작하게하려면 어떻게해야합니까?

답변

0

파일 -> 설정 -> 도구 -> 터미널로 이동하고 "쉘 통합"확인란을 선택 취소하고 확인을 클릭하십시오. 터미널은 정상적으로 작동해야합니다.

"쉘 통합"을 선택한 경우 PyCharm (및 IntelliJ IDEA)은 PyCharm 배포판의 플러그인 아래 터미널 폴더에있는 .zshrc 파일을 소스하기 때문에 이러한 현상이 발생합니다. https://www.jetbrains.com/help/pycharm/terminal.html에서

:

쉘 통합 :

이 옵션을 선택하면 단말기가 처음로드 (플러그인 PyCharm 분포의 에서 터미널 폴더에있는) 사용자 정의 RC 설정 파일있는 추가 설정을 제공 한 다음 사용자의 rc 파일을 제공합니다. 현재 쉘 통합은 Bash/sh (bashrc), zsh (zshrc) 및 fish 쉘 (config.fish)에서 작동합니다.

대체 솔루션 /opt/pycharm-professional/plugins/terminal/.zshrc에이 코드를 주석하는 것입니다

if [ -n $LOGIN_SHELL ]; then 
    if [ -f "$DOTDIR/.zlogin" ]; then 
     source "$DOTDIR/.zlogin" 
    fi 
fi 
관련 문제