Documentation
¶
Overview ¶
Package hostfile reaches the user's desktop configuration (mimeapps.list, browser manifests) where it lives: the plain file call outside a Flatpak, a host sh script through flatpak-spawn inside one, which is not granted those files.
Index ¶
- func ConfigHome(home string) string
- func Exec(name string, args ...string) (string, error)
- func Spawn(name string, args ...string) error
- type Host
- func (h Host) Command(name string, args ...string) (string, error)
- func (h Host) IsDir(path string) bool
- func (h Host) Read(path string) ([]byte, error)
- func (h Host) Remove(path string) error
- func (h Host) Resolve(path string) string
- func (h Host) Write(path string, b []byte, perm fs.FileMode) error
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigHome ¶
ConfigHome is the host's XDG config folder; a Flatpak's own XDG_CONFIG_HOME points into its sandbox.
Types ¶
type Host ¶
type Host struct{ Run Runner }
Host runs the file steps through Run.
func (Host) Command ¶
Command runs name where the user's desktop lives: directly, or from inside a Flatpak through flatpak-spawn, where name is looked up on the host's PATH.