Documentation ¶
Index ¶
- Constants
- func SetAppInfo(ty, id string) error
- type AppInfo
- type AppInfos
- type Daemon
- type Manager
- func (m *Manager) AddUserApp(mimes []string, desktopId string) *dbus.Error
- func (m *Manager) DeleteUserApp(desktopId string) *dbus.Error
- func (m *Manager) GetDefaultApp(ty string) (string, *dbus.Error)
- func (*Manager) GetInterfaceName() string
- func (m *Manager) ListApps(ty string) (string, *dbus.Error)
- func (m *Manager) ListUserApps(ty string) (string, *dbus.Error)
- func (m *Manager) Reset()
- func (m *Manager) SetDefaultApp(mimes []string, desktopDd string) *dbus.Error
Constants ¶
View Source
const (
AppMimeTerminal = "application/x-terminal"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppInfo ¶
type Daemon ¶
type Daemon struct { *loader.ModuleBase // contains filtered or unexported fields }
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) AddUserApp ¶
func (*Manager) GetDefaultApp ¶
GetDefaultApp get the default app id for the special mime ty: the special mime ret0: the default app info ret1: error message
func (*Manager) ListApps ¶
ListApps list the apps that supported the special mime ty: the special mime ret0: the app infos
Click to show internal directories.
Click to hide internal directories.