apps

package
v0.0.0-...-8120367 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 23 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MkdirAll

func MkdirAll(path string, uid int, perm os.FileMode) error

copy from go source src/os/path.go

func Walk

func Walk(root string, walkFn WalkFunc)

Types

type ALRecorder

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

app launched recorder

func (*ALRecorder) GetExportedMethods

func (v *ALRecorder) GetExportedMethods() dbusutil.ExportedMethods

func (*ALRecorder) GetInterfaceName

func (*ALRecorder) GetInterfaceName() string

func (*ALRecorder) GetNew

func (r *ALRecorder) GetNew(sender dbus.Sender) (newApps map[string][]string, busErr *dbus.Error)

func (*ALRecorder) MarkLaunched

func (r *ALRecorder) MarkLaunched(file string) *dbus.Error

func (*ALRecorder) Service

func (r *ALRecorder) Service() *dbusutil.Service

func (*ALRecorder) UninstallHints

func (r *ALRecorder) UninstallHints(desktopFiles []string) *dbus.Error

func (*ALRecorder) WatchDirs

func (r *ALRecorder) WatchDirs(sender dbus.Sender, dataDirs []string) *dbus.Error

type DFWatcher

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

desktop file watcher

func (*DFWatcher) GetExportedMethods

func (v *DFWatcher) GetExportedMethods() dbusutil.ExportedMethods

func (*DFWatcher) GetInterfaceName

func (*DFWatcher) GetInterfaceName() string

type Daemon

type Daemon struct {
	*loader.ModuleBase
	// contains filtered or unexported fields
}

func NewDaemon

func NewDaemon(logger *log.Logger) *Daemon

func (*Daemon) GetDependencies

func (d *Daemon) GetDependencies() []string

func (*Daemon) Name

func (d *Daemon) Name() string

func (*Daemon) Start

func (d *Daemon) Start() error

func (*Daemon) Stop

func (d *Daemon) Stop() error

type FileEvent

type FileEvent struct {
	fsnotify.Event
	NotExist bool
	IsDir    bool
	IsFound  bool
}

func NewFileEvent

func NewFileEvent(ev fsnotify.Event) *FileEvent

func NewFileFoundEvent

func NewFileFoundEvent(name string) *FileEvent

type SubRecorder

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

func NewSubRecorder

func NewSubRecorder(uid int, home, root string, parent *ALRecorder) *SubRecorder

func (*SubRecorder) Destroy

func (sr *SubRecorder) Destroy()

func (*SubRecorder) GetNew

func (sr *SubRecorder) GetNew() (newApps []string)

func (*SubRecorder) MarkLaunched

func (sr *SubRecorder) MarkLaunched(name string) bool

func (*SubRecorder) RequestSave

func (sr *SubRecorder) RequestSave()

type WalkFunc

type WalkFunc func(name string, info os.FileInfo)

Jump to

Keyboard shortcuts

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