userd

package
v0.0.0-...-c7fba9c Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: GPL-3.0 Imports: 26 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) Interface

func (s *Launcher) Interface() string

Interface returns the name of the interface this object implements

func (*Launcher) IntrospectionData

func (s *Launcher) IntrospectionData() string

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

func (*Launcher) ObjectPath

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

ObjectPath returns the path that the object is exported as

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 PrivilegedDesktopLauncher

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

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

func (*PrivilegedDesktopLauncher) Interface

func (s *PrivilegedDesktopLauncher) Interface() string

Name returns the name of the interface this object implements

func (*PrivilegedDesktopLauncher) IntrospectionData

func (s *PrivilegedDesktopLauncher) IntrospectionData() string

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

func (*PrivilegedDesktopLauncher) ObjectPath

func (s *PrivilegedDesktopLauncher) ObjectPath() dbus.ObjectPath

BasePath returns the base path of the object

func (*PrivilegedDesktopLauncher) OpenDesktopEntry

func (s *PrivilegedDesktopLauncher) OpenDesktopEntry(desktopFileID string, sender dbus.Sender) *dbus.Error

OpenDesktopEntry implements the 'OpenDesktopEntry' method of the 'io.snapcraft.DesktopLauncher' DBus interface. The desktopFileID is described here: https://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#desktop-file-id

type Settings

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

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

func (*Settings) Check

func (s *Settings) Check(setting string, 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) CheckSub

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

CheckSub implements the 'CheckSub' 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.CheckSub string:'default-url-scheme-handler' string:'irc' string:'ircclient.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) GetSub

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

GetSub implements the 'GetSub' 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.GetSub string:'default-url-scheme-handler' string:'irc'

func (*Settings) Interface

func (s *Settings) Interface() string

Interface returns the name of the interface this object implements

func (*Settings) IntrospectionData

func (s *Settings) IntrospectionData() string

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

func (*Settings) ObjectPath

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

ObjectPath returns the path that the object is exported as

func (*Settings) Set

func (s *Settings) Set(setting string, 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'

func (*Settings) SetSub

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

SetSub implements the 'SetSub' 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.SetSub string:'default-url-scheme-handler' string:'irc' string:'ircclient.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