Skip to content

lbssousa/host-spawn

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Run commands on your host from inside your toolbox or flatpak sandbox

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 92.2%
  • Shell 7.8%