appinfo

package
v0.0.0-...-f6cbe64 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

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) 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) 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