x11

package
v0.0.0-...-3cf66e7 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvVarDisplay = "DISPLAY"
)
View Source
const (
	EnvVarXAuthority = "XAUTHORITY"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Display

type Display struct {
	Hostname string
	Display  int
	Screen   int
}

func ParseDisplay

func ParseDisplay(s string) (*Display, error)

func (*Display) String

func (d *Display) String() string

type XAuth

type XAuth struct {
	Path       string
	XAuthority string
}

func (*XAuth) Add

func (x *XAuth) Add(ctx context.Context, xauthorityEntry *XAuthorityEntry) error

func (*XAuth) List

func (x *XAuth) List(ctx context.Context, displays ...*Display) ([]XAuthorityEntry, error)

func (*XAuth) Remove

func (x *XAuth) Remove(ctx context.Context, display *Display) error

type XAuthorityEntry

type XAuthorityEntry struct {
	Display *Display
	Proto   string
	Cookie  string
}

func ParseXAuthorityEntry

func ParseXAuthorityEntry(line string) (*XAuthorityEntry, error)

func (*XAuthorityEntry) String

func (x *XAuthorityEntry) String() string

Jump to

Keyboard shortcuts

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