Documentation ¶
Index ¶
- Constants
- func SetAppInfo(ty, id string) error
- type AppInfo
- type AppInfos
- type Daemon
- type Manager
- func (m *Manager) AddUserApp(mimeTypes []string, desktopId string) *dbus.Error
- func (m *Manager) DeleteApp(mimeTypes []string, desktopId string) *dbus.Error
- func (m *Manager) DeleteUserApp(desktopId string) *dbus.Error
- func (m *Manager) GetDefaultApp(mimeType string) (defaultApp string, busErr *dbus.Error)
- func (v *Manager) GetExportedMethods() dbusutil.ExportedMethods
- func (*Manager) GetInterfaceName() string
- func (m *Manager) ListApps(mimeType string) (apps string, busErr *dbus.Error)
- func (m *Manager) ListUserApps(mimeType string) (userApps string, busErr *dbus.Error)
- func (m *Manager) Reset()
- func (m *Manager) SetDefaultApp(mimes []string, desktopId string) *dbus.Error
Constants ¶
View Source
const (
AppMimeTerminal = "application/x-terminal"
)
Variables ¶
This section is empty.
Functions ¶
func SetAppInfo ¶
Types ¶
type AppInfo ¶
type AppInfo struct { // Desktop id Id string // App name Name string // Display name DisplayName string // Comment Description string // Icon Icon string // Commandline Exec string CanDelete bool // contains filtered or unexported fields }
func GetDefaultAppInfo ¶
type Daemon ¶
type Daemon struct { *loader.ModuleBase // contains filtered or unexported fields }
func (*Daemon) GetDependencies ¶
func (*Daemon) WaitEnable ¶
func (d *Daemon) WaitEnable()
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
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) GetExportedMethods ¶
func (v *Manager) GetExportedMethods() dbusutil.ExportedMethods
func (*Manager) GetInterfaceName ¶
func (*Manager) ListApps ¶
ListApps list the apps that supported the special mime ty: the special mime ret0: the app infos
func (*Manager) ListUserApps ¶
Click to show internal directories.
Click to hide internal directories.