flathub / flathub/com.visualstudio.code

Cannot use host system's shell in integrated terminal

未关闭
#197 3 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Shell
星标
217
派生
82
平均合并
1 天 7 小时
30 天内合并 PR
1

描述

Hi there!

Just installed VS Code via Flatpak on my Fedora Silverblue 33. Everything's working pretty fine so far, except for the following detail.
When first opening VS Code, we are presented with this `flatpak-warning.txt`. That's actually really appreciated.
However, one of its suggestions is to use the following to use the host system's shell:

```
To make the Integrated Terminal automatically use the host system's shell,
you can add this to the settings:

{
"terminal.integrated.shell.linux": "/usr/bin/env",
"terminal.integrated.shellArgs.linux": ["--", "flatpak-spawn", "--host", "bash"]
}
```

That did not work. So I went back to the default and tried this (in the integrated terminal):

```sh
sh-5.1$ flatpak-spawn --host echo hey
Can't find bus: Cannot autolaunch D-Bus without X11 $DISPLAY
```

Since `$DISPLAY` is defined in the host, I went ahead and ran:

```sh
sh-5.1$ DISPLAY=:0 flatpak-spawn --host echo hey
Can't find bus: Failed to execute child process “dbus-launch” (No such file or directory)
```

Is there anything I can do to make it work?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。