### Install SDK Extensions Source: https://github.com/flathub-infra/ide-flatpak-wrapper/blob/master/first_run.txt Use these commands to install additional SDK extensions for language support. ```bash $ flatpak install flathub org.freedesktop.Sdk.Extension.dotnet9 ``` ```bash $ flatpak install flathub org.freedesktop.Sdk.Extension.golang ``` -------------------------------- ### Sourcing the Repository with Git Source: https://github.com/flathub-infra/ide-flatpak-wrapper/blob/master/README.md Example of how to source the ide-flatpak-wrapper repository using a git source in a Flatpak build file. Ensure a specific commit is used. ```yaml - name: ide-flatpak-wrapper buildsystem: meson config-opts: # your config opts (more on this later) sources: - type: git url: https://github.com/flathub/ide-flatpak-wrapper.git commit: ``` -------------------------------- ### Template File Interpolation Example Source: https://github.com/flathub-infra/ide-flatpak-wrapper/blob/master/README.md Demonstrates string interpolation in template files using @EDITOR_TITLE@ and @FLATPAK_ID@. The example shows the template before and after interpolation. ```text ------------------------------------------------------------------------------------ | Warning: You are running an unofficial Flatpak version of @EDITOR_TITLE@ !!! | ------------------------------------------------------------------------------------ Please open issues under: https://github.com/flathub/@FLATPAK_ID@/issues ``` ```text ------------------------------------------------------------------------------------ | Warning: You are running an unofficial Flatpak version of VS Code !!! | ------------------------------------------------------------------------------------ Please open issues under: https://github.com/flathub/com.visualstudio.code/issues ``` -------------------------------- ### Including Template Files Source: https://github.com/flathub-infra/ide-flatpak-wrapper/blob/master/README.md Example of how to include first run and SDK update template files in the module's sources. These files are used for user notifications. ```yaml - name: ide-flatpak-wrapper buildsystem: meson config-opts: # your options sources: # your source choice - type: file path: ide-first-run.txt - type: file path: sdk-update.txt ``` -------------------------------- ### Specifying Editor and Wrapper Name Source: https://github.com/flathub-infra/ide-flatpak-wrapper/blob/master/README.md Configuration options for the ide-flatpak-wrapper, specifying the editor's binary path and the name for the wrapper installation. These are minimum required options. ```yaml - name: ide-flatpak-wrapper buildsystem: meson config-opts: # Path to the editor executable - -Deditor_binary=/app/main/bin/code-oss # Install wrapper under this name (must be different from the above) - -Dprogram_name=code-oss-wrapper sources: # your source choice ``` -------------------------------- ### Enable SDK Extensions via Environment Variable Source: https://github.com/flathub-infra/ide-flatpak-wrapper/blob/master/first_run.txt Set the FLATPAK_ENABLE_SDK_EXT environment variable to a comma-separated list of extension names to enable them. ```bash $ FLATPAK_ENABLE_SDK_EXT=dotnet9,golang flatpak run @FLATPAK_ID@ ``` -------------------------------- ### List Available Commands in Flatpak Source: https://github.com/flathub-infra/ide-flatpak-wrapper/blob/master/first_run.txt Run this command to list available commands within the Flatpak environment. ```bash $ flatpak run --command=sh @FLATPAK_ID@ ``` -------------------------------- ### Execute Commands on Host System Source: https://github.com/flathub-infra/ide-flatpak-wrapper/blob/master/first_run.txt Use this command to run commands on the host system from within the Flatpak sandbox. ```bash $ flatpak-spawn --host ``` -------------------------------- ### Set SDK Extensions Persistently via Flatpak Override Source: https://github.com/flathub-infra/ide-flatpak-wrapper/blob/master/first_run.txt Use this command to persistently set the FLATPAK_ENABLE_SDK_EXT environment variable for the Flatpak. ```bash $ flatpak override --user @FLATPAK_ID@ --env=FLATPAK_ENABLE_SDK_EXT="dotnet9,golang" ``` -------------------------------- ### Search for Flatpak Packages Source: https://github.com/flathub-infra/ide-flatpak-wrapper/blob/master/first_run.txt Use this command to search for available Flatpak packages. ```bash $ flatpak search ``` -------------------------------- ### Configure Integrated Terminal for Host Shell Source: https://github.com/flathub-infra/ide-flatpak-wrapper/blob/master/first_run.txt Add this JSON configuration to your VS Code settings to make the integrated terminal use the host system's shell via flatpak-spawn. ```json { "terminal.integrated.profiles.linux": { "host-bash": { "path": "/usr/bin/flatpak-spawn", "args": ["--host", "--env=TERM=xterm-256color", "bash"] } }, "terminal.integrated.defaultProfile.linux": "host-bash" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.