Skip to content

Commit

Permalink
Small stylistic update to the README
Browse files Browse the repository at this point in the history
  • Loading branch information
1player committed Jun 3, 2023
1 parent d73cea4 commit 06731ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ Run commands on your host machine from inside your flatpak sandbox, [toolbox](ht
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`.

*Note:* you will want to store the symlink in a location visible only to the container, to avoid an infinite loop. If you are using toolbox/distrobox, this means anywhere outside your home directory. I recommend `/usr/local/bin`. See https://github.com/1player/host-spawn/issues/19 for details.

Example of creating a shim for the `flatpak` command:

```
Expand All @@ -31,6 +29,9 @@ $ flatpak --version
Flatpak 1.12.7
```

**Note:** you will want to store the symlink in a location visible only to the container, to avoid an infinite loop. If you are using toolbox/distrobox, this means anywhere outside your home directory. I recommend `/usr/local/bin`. See https://github.com/1player/host-spawn/issues/19 for details.


## References

* https://github.com/owtaylor/PurpleEgg/blob/master/common/host-command.c
Expand Down

0 comments on commit 06731ac

Please sign in to comment.