hostenv

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package hostenv gives child processes the environment the program was started from, minus what an AppImage's AppRun injected for the bundle's own libraries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Environ

func Environ() []string

Environ is os.Environ for a child process. Inside an AppImage ($APPIMAGE and $APPDIR set) it drops every path-list entry under $APPDIR and every variable left empty by that, plus APPDIR, APPIMAGE and OWD, so a host tool such as git or dotnet loads the host's libraries instead of the bundle's. The program's own process keeps its environment: a GUI toolkit's helper processes need it. AppImages exist only on Linux, so elsewhere it is os.Environ.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL