代码之家  ›  专栏  ›  技术社区  ›  Babken Vardanyan

打开PyCharm/IntelliJ IDEA终端启动新的Xorg会话

  •  0
  • Babken Vardanyan  · 技术社区  · 8 年前

    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
    

    当我在设置中将shell设置为bash时,它正常工作。 如何使终端正常工作?

    1 回复  |  直到 8 年前
        1
  •  0
  •   Community Mohan Dere    6 年前

    转到文件->设置->工具->Terminal并取消选中“Shell integration”复选框,然后单击OK。终端应正常工作。

    之所以会出现这种情况,是因为当选中“Shell集成”时,PyCharm(和IntelliJ IDEA)会发出一个消息。zshrc文件位于PyCharm发行版插件下的终端文件夹中。

    https://www.jetbrains.com/help/pycharm/terminal.html :

    外壳集成:

    自定义rc配置文件(位于插件下的终端文件夹中 PyCharm分布),它提供了一个额外的设置,然后 用户的rc文件。注意,目前shell集成适用于 Bash/sh(bashrc)、zsh(zshrc)和fish shell(config.fish)。

    /opt/pycharm-professional/plugins/terminal/.zshrc :

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