Fallback icon set now has general MIME icons support

Specifically, it supports all the XDG x-generic icons.
This commit is contained in:
2024-08-19 03:18:37 -04:00
parent 894f34e3ef
commit 4fa29f2719
3 changed files with 58 additions and 10 deletions

10
internal/util/util.go Normal file
View 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
}