Clarify flatpak-warning.txt to recommend host-spawn

- Replaced `flatpak-spawn` with `host-spawn` since the former causes issues with most modern shells.
- Tried clarifying the difference between tools inside container and tools installed on the host.
This commit is contained in:
walking-octopus
2023-09-23 12:11:41 +00:00
committed by GitHub
parent 7d89737d0c
commit 8104e40058
+10 -6
View File
@@ -13,35 +13,39 @@ to access SDKs on your host system!
To execute commands on the host system, run inside the sandbox:
$ flatpak-spawn --host <COMMAND>
$ host-spawn <COMMAND>
To make the Integrated Terminal automatically use the host system's shell,
you can add this to the settings:
{
"terminal.integrated.defaultProfile.linux": "bash",
"terminal.integrated.profiles.linux": {
"bash": {
"path": "/usr/bin/flatpak-spawn",
"args": ["--host", "--env=TERM=xterm-256color", "bash"]
"path": "host-spawn",
"args": ["bash"]
}
}
}
This flatpak provides a standard development environment (gcc, python, etc).
This Flatpak provides a standard development environment (gcc, python, etc).
To see what's available:
$ flatpak run --command=sh com.visualstudio.code
$ ls /usr/bin (shared runtime)
$ ls /app/bin (bundled with this flatpak)
To get support for additional languages, you have to install SDK extensions, e.g.
To get support for additional languages or tools within the Flatpak, you have to install SDK extensions, e.g.
$ flatpak install flathub org.freedesktop.Sdk.Extension.dotnet
$ flatpak install flathub org.freedesktop.Sdk.Extension.golang
$ FLATPAK_ENABLE_SDK_EXT=dotnet,golang flatpak run com.visualstudio.code
Similarly for shells and other tools:
$ flatpak install com.visualstudio.code.tool.fish
$ flatpak install com.visualstudio.code.tool.podman
You can use
$ flatpak search <TEXT>