userd

package
v2.42.5-go-mod+incompa... Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Launcher

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

Launcher implements the 'io.snapcraft.Launcher' DBus interface.

func (*Launcher) BasePath

func (s *Launcher) BasePath() dbus.ObjectPath

BasePath returns the base path of the object

func (*Launcher) IntrospectionData

func (s *Launcher) IntrospectionData() string

IntrospectionData gives the XML formatted introspection description of the DBus service.

func (*Launcher) Name

func (s *Launcher) Name() string

Name returns the name of the interface this object implements

func (*Launcher) OpenFile

func (s *Launcher) OpenFile(parentWindow string, clientFd dbus.UnixFD, sender dbus.Sender) *dbus.Error

func (*Launcher) OpenURL

func (s *Launcher) OpenURL(addr string, sender dbus.Sender) *dbus.Error

OpenURL implements the 'OpenURL' method of the 'io.snapcraft.Launcher' DBus interface. Before the provided url is passed to xdg-open the scheme is validated against a list of allowed schemes. All other schemes are denied.

type Settings

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

Settings implements the 'io.snapcraft.Settings' DBus interface.

func (*Settings) BasePath

func (s *Settings) BasePath() dbus.ObjectPath

BasePath returns the base path of the object

func (*Settings) Check

func (s *Settings) Check(setting, check string, sender dbus.Sender) (string, *dbus.Error)

Check implements the 'Check' method of the 'io.snapcraft.Settings' DBus interface.

Example usage: dbus-send --session --dest=io.snapcraft.Settings --type=method_call --print-reply /io/snapcraft/Settings io.snapcraft.Settings.Check string:'default-web-browser' string:'firefox.desktop'

func (*Settings) Get

func (s *Settings) Get(setting string, sender dbus.Sender) (string, *dbus.Error)

Get implements the 'Get' method of the 'io.snapcraft.Settings' DBus interface.

Example usage: dbus-send --session --dest=io.snapcraft.Settings --type=method_call --print-reply /io/snapcraft/Settings io.snapcraft.Settings.Get string:'default-web-browser'

func (*Settings) IntrospectionData

func (s *Settings) IntrospectionData() string

IntrospectionData gives the XML formatted introspection description of the DBus service.

func (*Settings) Name

func (s *Settings) Name() string

Name returns the name of the interface this object implements

func (*Settings) Set

func (s *Settings) Set(setting, new string, sender dbus.Sender) *dbus.Error

Set implements the 'Set' method of the 'io.snapcraft.Settings' DBus interface.

Example usage: dbus-send --session --dest=io.snapcraft.Settings --type=method_call --print-reply /io/snapcraft/Settings io.snapcraft.Settings.Set string:'default-web-browser' string:'chromium-browser.desktop'

type Userd

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

func (*Userd) Dying

func (ud *Userd) Dying() <-chan struct{}

func (*Userd) Init

func (ud *Userd) Init() error

func (*Userd) Start

func (ud *Userd) Start()

func (*Userd) Stop

func (ud *Userd) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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