89luca89 / host-spawn

An alternative reimplementation of flatpak-spawn --host

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

host-spawn

A reimplementation of flatpak-spawn --host.

Run commands on your host machine from inside your flatpak sandbox, toolbox or distrobox containers.

Improvements over the original

Creating shims for host binaries

If there's a process that only makes sense to be executed on the host system, you can create a symlink to it somewhere in your $PATH and it'll always be executed through host-spawn.

Example of creating a shim for the flatpak command:

# Inside your container

$ flatpak --version
zsh: command not found: flatpak
$ ln -s /usr/local/bin/host-spawn /usr/local/bin/flatpak
# Now the flatpak command will always be executed on the host
$ flatpak --version
Flatpak 1.12.7

References

About

An alternative reimplementation of flatpak-spawn --host

License:MIT No Attribution


Languages

Language:Go 91.9%Language:Shell 8.1%