Fallback icon set now has general MIME icons support
Specifically, it supports all the XDG x-generic icons.
This commit is contained in:
10
internal/util/util.go
Normal file
10
internal/util/util.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package util
|
||||
|
||||
import "git.tebibyte.media/tomo/tomo/data"
|
||||
|
||||
func GeneralizeXDGIconMimeType (mime data.Mime) data.Mime {
|
||||
// FIXME make this more accurate
|
||||
// https://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
|
||||
mime.Subtype = "x-generic"
|
||||
return mime
|
||||
}
|
||||
Reference in New Issue
Block a user