从应用程序菜单中打开Visual Studio Code时,一切正常。但不是从gnome-terminal
启动时。然后,vscode-terminal无法使用code
命令打开图形应用程序甚至源文件。进行code file.py
,则什么也没有发生。 firefox
给出消息Error: no DISPLAY environment variable specified
。 gnome-calculator
给出
Unable to init server: Could not connect: Connection refused
(gnome-calculator:6531): Gtk-WARNING **: 13:32:23.056: cannot open display:
我正在使用xubuntu 18.04
的{{1}}。
它在本地计算机上。我认为它曾经可以工作,并且可以在其他机器上工作...有什么想法吗?