wslenv

package module
v0.0.0-...-4857066 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: BSD-3-Clause-Clear Imports: 5 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	WSLENV      = "WSLENV"
	ENVIRONMENT = "Environment"
)

https://devblogs.microsoft.com/commandline/share-environment-vars-between-wsl-and-windows/

View Source
const (
	HWND_BROADCAST          = windows.HWND(0xFFFF)
	WM_SETTINGCHANGE        = uint(0x001A)
	SMTO_NORMAL             = uint(0x0000)
	SMTO_ABORTIFHUNG        = uint(0x0002)
	SMTO_NOTIMEOUTIFNOTHUNG = uint(0x0008)
)

Variables

This section is empty.

Functions

func Notify

func Notify() error

func Publishenv

func Publishenv(key string, flags string, publish bool) error

func Setenv

func Setenv(key string, value string, flags string, publish bool) error

func Unpublishenv

func Unpublishenv(key string, flags string, publish bool) error

func Unsetenv

func Unsetenv(key string, publish bool) error

Types

type LxssKey

type LxssKey struct {
	// contains filtered or unexported fields
}

func Open

func Open(uuid string) (*LxssKey, error)

func (*LxssKey) Close

func (k *LxssKey) Close() error

func (*LxssKey) GetEnv

func (k *LxssKey) GetEnv(name string) (string, error)

func (*LxssKey) SetEnv

func (k *LxssKey) SetEnv(name string, value string) error

func (*LxssKey) UnsetEnv

func (k *LxssKey) UnsetEnv(name string) error

Jump to

Keyboard shortcuts

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