portal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeResponseError

func MakeResponseError(msg string) error

func OpenFile

func OpenFile(bus *dbus.Conn, filename string) error

func OpenURI

func OpenURI(bus *dbus.Conn, uri string) error

Types

type Document

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

func (*Document) GetDefaultMountPoint

func (p *Document) GetDefaultMountPoint() (string, error)

func (*Document) GetMountPoint

func (p *Document) GetMountPoint() (string, error)

func (*Document) GetUserXdgRuntimeDir

func (p *Document) GetUserXdgRuntimeDir() (string, error)

GetUserXdgRuntimeDir returns the runtime directory for the current user. TODO: find a better place for this: it could fit well in a generic portal.Desktop interface, or even in the "dirs" package (but then we'd lose caching, so it needs more thoughts).

type ResponseError

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

func (*ResponseError) Error

func (u *ResponseError) Error() string

func (*ResponseError) Is

func (u *ResponseError) Is(err error) bool

Jump to

Keyboard shortcuts

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