Skip to content

Commit

Permalink
Merge branch 'vtrenton-master' into update-44d87c0
Browse files Browse the repository at this point in the history
  • Loading branch information
noonsleeper committed Dec 25, 2023
2 parents 5352241 + 2c464a8 commit bd41720
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 5 deletions.
32 changes: 27 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ to access SDKs on your host system!

### To execute commands on the host system, run inside the sandbox:

```bash
$ flatpak-spawn --host <COMMAND>
```
`$ flatpak-spawn --host <COMMAND>`

or

`$ host-spawn <COMMAND>`

- Most users seem to report a better experience with `host-spawn`

Note that this runs the COMMAND without any further host-side confirmation.
If you want to prevent such full host access from inside the sandbox, you can use `flatpak override` as follows:
Expand All @@ -38,18 +42,36 @@ Since are serveral ways to achieve this the better is to use [vsix-manager](http
To make the Integrated Terminal automatically use the host system's shell,
you can add this to the settings of vscodium:


`flatpak-spawn`

```json
{
"terminal.integrated.defaultProfile.linux": "bash",
"terminal.integrated.profiles.linux": {
"bash": {
"path": "/usr/bin/flatpak-spawn",
"args": ["--host", "--env=TERM=xterm-256color", "bash"]
"args": ["--host", "--env=TERM=xterm-256color", "bash"],
"icon": "terminal-bash",
"overrideName": true
}
},
}
```
`host-spawn`

```json
"terminal.integrated.defaultProfile.linux": "bash",
"bash": {
"path": "/app/bin/host-spawn",
"args": ["bash"],
"icon": "terminal-bash",
"overrideName": true
},
```

- You can change **bash** to any terminal you are using: zsh, fish, sh.
- `overrideName` allows for the 'name' (or whatever you set it to) of the shell you're using to appear (e.g. normally zsh, fish, sh).
### SDKs

This flatpak provides a standard development environment (gcc, python, etc).
Expand Down Expand Up @@ -80,7 +102,7 @@ If you want to run `codium /path/to/file` from the host terminal just add this
to your shell's rc file

```bash
alias codium="flatpak run com.vscodium.codium "
$ alias codium="flatpak run com.vscodium.codium "
```

then reload sources, now you could try:
Expand Down
15 changes: 15 additions & 0 deletions com.vscodium.codium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,21 @@ modules:
url: https://github.com/refi64/zypak.git
branch: main
commit: ded79a2f8a509adc21834b95a9892073d4a91fdc
- name: host-spawn
buildsystem: simple
build-commands:
- install -Dm755 host-spawn /app/bin/host-spawn
sources:
- type: file
url: https://github.com/1player/host-spawn/releases/download/1.5.0/host-spawn-x86_64
sha256: dbf67e7e111c4fe1edb0c642cbb4193064ca5b384aeb1054fc2befba6ed88b83
dest-filename: host-spawn
only-arches: [x86_64]
- type: file
url: https://github.com/1player/host-spawn/releases/download/1.5.0/host-spawn-aarch64
sha256: c42c12be6cdd83e374b847bec836659fb45231215797777c9ee1c9c0ae9e3783
dest-filename: host-spawn
only-arches: [aarch64]
- name: wrapper-flatpak-wrapper
buildsystem: meson
config-opts:
Expand Down

0 comments on commit bd41720

Please sign in to comment.