mime

package
v0.0.0-...-17244d7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MimeTypeGtk    = "application/x-gtk-theme"
	MimeTypeIcon   = "application/x-icon-theme"
	MimeTypeCursor = "application/x-cursor-theme"
)

Variables

This section is empty.

Functions

func GetAppList

func GetAppList(mime string) []string

Get app list of supported the 'mime' ret0: desktopId list

func GetDefaultApp

func GetDefaultApp(mime string, mustSupportURIs bool) (string, error)

Get default app for 'mime'

ret0: desktopId

func Query

func Query(uri string) (string, error)

Query query file mime type

func SetDefaultApp

func SetDefaultApp(mime, desktopId string) error

Set 'mime' default app to 'desktopId'

desktopId: the basename of the desktop file

Types

This section is empty.

Jump to

Keyboard shortcuts

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