From 8104e40058556949c188149c1af0b750344136d1 Mon Sep 17 00:00:00 2001 From: walking-octopus <46994949+walking-octopus@users.noreply.github.com> Date: Sat, 23 Sep 2023 12:11:41 +0000 Subject: [PATCH] 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. --- flatpak-warning.txt | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/flatpak-warning.txt b/flatpak-warning.txt index a4c70e8..0dc2906 100644 --- a/flatpak-warning.txt +++ b/flatpak-warning.txt @@ -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 + $ host-spawn 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