appinfo

package
v0.0.0-...-51dca1d Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInfo

type AppInfo interface {
	GetId() string
	GetName() string
	GetIcon() string
	GetExecutable() string
	GetFileName() string
	GetCommandline() string
	Launch(files []string, launchContext *AppLaunchContext) error
	GetStartupWMClass() string
}

type AppLaunchContext

type AppLaunchContext struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewAppLaunchContext

func NewAppLaunchContext(conn *x.Conn) *AppLaunchContext

func (*AppLaunchContext) GetCmdPrefixes

func (ctx *AppLaunchContext) GetCmdPrefixes() []string

func (*AppLaunchContext) GetCmdSuffixes

func (ctx *AppLaunchContext) GetCmdSuffixes() []string

func (*AppLaunchContext) GetEnv

func (ctx *AppLaunchContext) GetEnv() []string

func (*AppLaunchContext) GetStartupNotifyId

func (ctx *AppLaunchContext) GetStartupNotifyId(appInfo AppInfo, files []string) (string, error)

func (*AppLaunchContext) GetTimestamp

func (ctx *AppLaunchContext) GetTimestamp() uint32

func (*AppLaunchContext) LaunchFailed

func (ctx *AppLaunchContext) LaunchFailed(startupNotifyId string) error

func (*AppLaunchContext) SetCmdPrefixes

func (ctx *AppLaunchContext) SetCmdPrefixes(v []string)

func (*AppLaunchContext) SetCmdSuffixes

func (ctx *AppLaunchContext) SetCmdSuffixes(v []string)

func (*AppLaunchContext) SetEnv

func (ctx *AppLaunchContext) SetEnv(env []string)

func (*AppLaunchContext) SetTimestamp

func (ctx *AppLaunchContext) SetTimestamp(timestamp uint32)

type StartupNotifyMessage

type StartupNotifyMessage struct {
	Type      string
	KeyValues map[string]string
}

func (*StartupNotifyMessage) Broadcast

func (msg *StartupNotifyMessage) Broadcast(conn *x.Conn) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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