mgrdbus

package
v0.0.0-...-0caaa62 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: GPL-3.0-or-later Imports: 8 Imported by: 0

Documentation

Overview

Package mgrdbus provides a Dbus service (and client) for external applets management.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListServices

func ListServices() (string, error)

ListServices forwards action to get the list of active services.

func StartApplet

func StartApplet(a, b, c, d, e, f, g string) error

StartApplet forwards action to start a new applet. Args are those sent by the dock in the started applet command line.

Types

type Manager

type Manager struct {
	*srvdbus.Loader // Extends the applet service loader to provide its methods on the bus.
	// contains filtered or unexported fields
}

Manager is an external applets manager for cairo-dock.

func NewManager

func NewManager(loader *srvdbus.Loader, log cdtype.Logger) *Manager

NewManager creates a loader with the given list of applets services.

func (*Manager) CountActive

func (load *Manager) CountActive() int

CountActive returns the number of managed applets.

func (*Manager) GetApplets

func (load *Manager) GetApplets(name string) (list []cdtype.AppInstance)

GetApplets return an applet instance.

func (*Manager) IsActive

func (load *Manager) IsActive(path string) bool

IsActive returns whether the given applet path is active or not.

func (*Manager) ListServices

func (load *Manager) ListServices() (string, *dbus.Error)

ListServices displays active services.

func (*Manager) OnSignal

func (load *Manager) OnSignal(path string, s *dbus.Signal) bool

OnSignal forwards a signal event to the applet backend.

func (*Manager) StartApplet

func (load *Manager) StartApplet(a, b, c, d, e, f, g, h string) *dbus.Error

StartApplet creates a new applet instance with args from command line.

func (*Manager) StopApplet

func (load *Manager) StopApplet(path string)

StopApplet close the applet instance.

func (*Manager) Tick

func (load *Manager) Tick()

Tick ticks all applets pollers.

Jump to

Keyboard shortcuts

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